Headings & Paragraphs · HTML

Ch 1 · Your First Web Page — card 2 of 4.

Use <h1>–<h6> for headings (largest to smallest) and <p> for paragraphs. Use one <h1> per page, then <h2>/<h3> for sections.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>My Page</title>
  </head>
  <body>
    <h1>My Blog</h1>
    <h2>About Me</h2>
    <p>I am learning to build web pages.</p>
    <h2>My Goals</h2>
    <p>Become a web developer.</p>
  </body>
</html>

Which tag is the largest heading?