Review: The 4 Main Document Elements

Can you see how a single page is similar to how you’re structured? You only have one head and one body, and the head always comes first.

stick figure representing head and body of an HTML document

The following is the basic layout of an HTML document.

HTML
<!DOCTYPE html>
<html>
  <head>
    <title></title>
    <!-- Meta data and information about your site, not visible to visitors. -->
  </head>

  <body>
    <!-- “My Way-Cool Awesome Site!” contents, visible to visitors. -->
  </body>
</html>

html document elements page structure