HTML Tutorials


Headings

Want to draw attention to some text? Use a heading! Headings are numbered from largest to smallest. It's good to have headings at the beginning of a page or paragraph. You can use headings to organize main ideas.



Code

<!DOCTYPE html>
<html>
  <head>
    <title>Headings!</title>
  </head>

  <body>
    <h1>h1 heading</h1>
    <h2>h2 heading</h2>
    <h3>h3 heading</h3>
    <h4>h4 heading</h4>
    <h5>h5 heading</h5>
  </body>
</html>
        

Result

h1 heading

h2 heading

h3 heading

h4 heading

h5 heading