These elements (h1,h2,h3,h4,h5,h6) are for headers. They add titles to various sections of the page.


Headers should be used logically. They are not to make text big, and you should not use the wrong header just because the text will be your preferred size. Use CSS to control the size.

The <h1> should be the page title, and arguably should appear only once. The <h2> elements should be the sub-headings of the document title. The <h3> elements are the sub-sub-headings, with <h4> elements as their children (followed by <h5> and <h6>).


In XHTML2 and HTML5, these elements are still available, but deprecated in favor of a single <h> element, whose level is determined by nested <section> elements.

This HTML article is a stub. You can help by expanding it.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.