Usage
- Headings are not just larger text
- Headings must be logically ordered.
- Arrow keys will browse headings (not the tab key)
- Headings must not receive focus
Annotations for headings
- Start with a single
<h1>
per page (typically the same as the <title>
)
- Title major sections with
<h2>
- Subsections with
<h3>
- It should be rare that
<h4>
and beyond is required.
Code examples
Complex headings
- When multiple styles exist inside a heading use spans and css to achieve the desired result
- Do not use multiple headings
Related heading: h1, h2, h3 entries