Your first page

An HTML document starts with a doctype.

Then the entire page is wrapped in an html element.

The head contains page information.

The body contains what page visitors see.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>My First Page</title>
  </head>
  <body>
    <h1>Hello, world!</h1>
    <p>My first web page.</p>
  </body>
</html>

Learn more