By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

HTML h1 Element

Reference on the h1 sectioning element of HTML (Living Standard).

Edited: 2014-12-28 07:06

The h1 is a heading element, traditionally it has been used to create a first-level section in a page. In HTML, it can now be used in combination with section, to create an unlimited number of nested sections.

The h1 element should be used as the heading, for each section in a page.

Older standards

Having Multiple h1s in a single page is not harmful, and can even be recommended for HTML 4.01 under some circumstances. For example, Using h2 to indicate navigation on a site, can be semantically incorrect.

If your main content is using h1, and your navigation uses h2, then you are actually saying that your navigation belongs to the content section, which would be incorrect.


Atributte: Value: Description:
Global Attributes Varies The Global attributes can be used on any HTML element.

Using HTML h1 to h6

Note. Generally its best to use h1 first, then h2, h3 ETC.

<h1>h1 - Headline1</h1>
<h2>h2 - Headline2</h2>
<h3>h3 - Headline3</h3>
<h4>h4 - Headline4</h4>
<h5>h5 - Headline5</h5>
<h6>h6 - Headline6</h6>