====== 1.1.2. Implement a logical and thorough hierarchy of headings using the tags
to ======
To tag the headings on each page, use the heading tags from '''' to '''', if required. The structure of the headings must be both logical and thorough.
This means that:
* There must be no “jumps” or inconsistencies in the heading structure — no sudden change from an '''' to an '''' without an intervening '''', for example.
* All the elements that are used as headings must be tagged as headings.
**Tip**
To implement a thorough and logical hierarchy of headings, bear in mind that the headings form the “Table of contents” of the page. Ask yourself if the table of contents is logical and thorough.
**Note**
* It is perfectly acceptable to use several on a page if there are several headings of the same level.
* A best practice in accessibility is to avoid using hidden headings.
**HTML5**
As from HTML5, it is possible to implement a complete hierarchy of headings, on several levels, by using only the '''' tag together with the new tags meant for creating sections in the document, such as '''' or ''''. It is also possible to leave “breaks” in the structure of the headings.
It is however preferable, for the time being, to continue to structure the headings in a logical and thorough manner, as was done before HTML5. You should continue to use the headings '''' to '''' until the development of HTML5 is finished, and it is properly implemented in browsers and assistive technology.
===== Examples =====
{{:notices:html-css:hierarchie-titres-01.jpg?direct&400|}}
Below, 3 examples of hierarchical heading organisation for one page. The first two organisations are correct, the last one not.
[…]
Careers at Atos
[…]
What to expect when you start Career at Atos
[…]
What to expect from your Career at Atos
[…]
Curious
[…]
Accessible Careers
[…]
Graduate Jobs
[…]
In this example, hierarchical heading organisation is logical and comprehensive.
[…]
Careers at Atos
[…]
What to expect when you start Career at Atos
[…]
What to expect from your Career at Atos
[…]
Curious
[…]
Accessible Careers
[…]
Graduate Jobs
[…]
In this example, hierarchical heading organisation is logical and comprehensive too.
Note that other hierarchical heading organisations are possible.
[…]
Careers at Atos
[…]
What to expect when you start Career at Atos
[…]
What to expect from your Career at Atos
[…]
Curious
[…]
Accessible Careers
[…]
Graduate Jobs
[…]
In this example, hierarchical heading organisation is incorrect because there are jumps and inconsistencies (a passage from '''' to '''' without '''', for example). And, the “Careers at Atos“ heading is not tagged as a heading.
===== Some useful tools =====
Browser extensions can highlight hierarchical heading organisation used on a page:
* [[https://addons.mozilla.org/fr/firefox/addon/headingsmap/|HeadingsMap]] for Firefox.
===== Related recommendations =====
* Previous recommendation: [[notices:html-css:identifier-les-principales-zones-de-la-page-avec-l-attribut-role]]
* Next recommendation: [[notices:html-css:structurer-les-menus-de-navigation-avec-des-listes]]