Lesson 2

Headings

An introduction to hierarchy

Headings go in heading elements. Below is an h1 and it's used for the most important heading on the page. h2s are for sub-headings. In all, we can use h1 to h6 to specify headings of differing importance.

Play
Go to the next lesson

index.html

the web page

New Window

Tasks

  • Change the content inside of <h1></h1> & <h2></h2> that are currently in the editor
  • Why don’t you add a paragraph after your <h1></h1> and maybe another one after <h2></h2>?
Next Lesson
Practical understanding of HTML paragraphs, headings and hyperlinks Badge

Basic HTML

Congratulations! You’ve just earned the Basic HTML badge!

If you'd like to send this badge to your Mozilla backpack, just fill out the form below.

This will push your badge to the Mozilla Badge Backpack which is governed by the Mozilla Badge Backpack Terms of Use and Privacy Policy.