Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Add Headings to an HTML Page

    Taylor BellTaylor Bell
    htmlHTML 5

    In this lesson, you will learn how to add headings to an HTML document by using h1 thru h6.



    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson


    Instructor: Just like in magazines and newspapers, we use headings to show different sections of text. More importantly, headings help organize your page behind the scenes.

    In order to add a heading in html, we'll use H1 through H6, with H1 being the biggest. Save the file, and we can see our headline.

    No matter how many levels of heading you use, just keep them in numerical order. That is, don't have H1s and H3s without having H2s. It's OK to use multiple of the same size as well.