Rule
Styled text as heading
Bold paragraphs should not stand in for headings.
- Rule
p-as-heading- WCAG 2.2
- 1.3.1 Info and Relationships (opens in a new tab) (Level A)
- Severity
- Serious
What it checks
The rule looks for a paragraph that may be standing in for a heading: shorter than 60 characters, its whole text inside one <b> or <strong>, and followed directly by another paragraph. Sighted readers see a heading. Screen reader users who move through a page by its headings never reach it.
When a person decides
A match is only ever sent for review. A bold lead-in line is also an ordinary style, and the markup cannot show whether it starts a section, so a person needs to decide.
Example
Sent to review
<p><strong>Delivery</strong></p>
<p>Orders placed before noon ship the same day.</p>
Passes
<h2>Delivery</h2>
<p>Orders placed before noon ship the same day.</p>
The engine is tested against both examples.
How to fix it
If the text starts a section, use a heading element at the right level, such as <h2>, and style it as needed.
Check your own pages
This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.