Headings and Lists
Learn about how to present content in a better way using HTML headers and list elements.
We'll cover the following
Headings
The HTML standard has h1
element as well as five additional text heading elements, appropriately named h2
through h6
.
It should be noted that heading elements should not be used to manipulate the font size of a heading. Rather, the levels represent semantically the difference between a main header, sub-header, etc.
To practice good style, you shouldn’t skip heading levels when structuring your HTML pages. In other words, an h2
element should be used for a header one level below an h1
element, an h3
element should be used a level below h2
, and so on.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy