Section headings with large or bold text can help visual users quickly scan and understand web pages for efficient navigation.
When heading elements are correctly applied (e.g., <h1>
...<h6>
), they provide the same type of efficient navigation to individuals with visual disabilities. Proper heading elements allow assistive technologies to quickly identify the headings on the page.
Without heading markup, users of assistive technologies are not able to skip through irrelevant content and navigate the page effectively. Some users will have to wade line-by-line through a web page with missing or improper section headings.
Heading level order and arrangement
HTML headings are classified starting with level 1 and ending at level 6. Headings on well-designed web pages will form an outline of the page’s content.
Level 1 is the "highest" level of the outline. A <h1>
element should be used to indicate the main content of the page.
Higher numbers indicate subsections. Taken together, the headings should form a well-structured hierarchy. For example:
Heading level 1
Heading level 2
Heading level 3
Heading level 3
Heading level 2
Heading level 3
Heading level 4
Heading level 4
Benefits
These measures allow the users of assistive technologies to:
- detect the sections (or subjects) covered on the page
- understand different sections of related content
- navigate quickly to any specific section
- allow search engines to detect the page’s main topics