HTML Basics

HTML Introduction

Learn what HTML is, how it works, and why it is the foundation of every web page.

What is HTML?

HTML stands for HyperText Markup Language. It is the standard markup language used to create web pages. HTML describes the structure of a web page and consists of a series of elements that tell the browser how to display content.

  • HTML stands for Hyper Text Markup Language
  • HTML is the standard markup language for creating Web pages
  • HTML describes the structure of a Web page
  • HTML consists of a series of elements
  • HTML elements tell the browser how to display the content
  • HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link"

A Simple HTML Document

A basic HTML document looks like this:

Example

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>My First Web Page</title>
</head>
<body>
  <h1>Welcome to HTML</h1>
  <p>This is my first web page!</p>
  <a href="https://devforgeacademy.com">Learn more</a>
</body>
</html>
Try it yourself — HTML