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
1×
Become a member
to unlock all features
Autoplay

    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.

    Code

    Code

    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
    Transcript

    Transcript

    Instructor: 00:00 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.

    00:07 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.

    00:16 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.

    Discuss

    Discuss