Picto thématique

Rule n° 227 - Each page’s content is organized according to a hierarchical structure of headings and sub-headings.

Titles and subtitles allow browsers, engines and voice tools to restore the structure of a page. Thus, users can directly access the content they are interested in.

#Basics #Accessibility #Development #Editorial #SEO #Structure and code

Goal

  • Allow interested users to view and navigate through the structure of the page’s content.
  • Enable machines and indexing tools to extract each page’s map.
  • Improve SEO by simplifying the content’s interpretation by web crawlers.
  • Improve the accessibility of content for people with disabilities.
  • Improve the way content is taken into account by search engines and indexing tools.

Implementation

Structure the document into titles and subtitles using the HTML elements h1 to h6.

Make sure that the structure does not contain "holes": a title at level h2 must not be followed by an h4, h5 or h6 title for example

Ensure that every page has at least one level 1 title with the h1 element.

Find out more:

Control

On each page, check in sequence:

  • that there is at least one element h1 corresponding to the title of the main section of the page content;
  • that there are sub-titles h2 to h6 (if necessary) corresponding to the titles of the sub-sections of the main page content;
  • that titles h1 to h6 follow successively without interruption, that for example a title h1 is not followed by a title h3.

The check must be carried out taking into account any title elements hidden on display or titles generated by JavaScript. For this purpose, you can use the display function of the table of contents of the page available in some development tools.

By Opquast - Read the license


Discover Opquast training and certification

The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.

Opquast training has already allowed over 19,000 web professionals to have their skills certified. Train your teams, contact us

We offer a 1 hour free discovery module.