Rule
Placeholder headings and labels
Headings and labels must describe their topic or purpose, not be template text.
- Rule
heading-label-placeholder- WCAG 2.2
- 2.4.6 Headings and Labels (opens in a new tab) (Level AA)
- Severity
- Moderate
What it checks
Reads the text of headings, <label> and <legend> elements. Text that a page builder or template leaves behind fails: phrases such as Add your heading text here or Your title goes here, Lorem ipsum, and numbered defaults such as Heading 2. Such text describes nothing, so someone scanning the page by headings, or reading a form, learns nothing from it.
Empty headings and missing labels are left to other rules, and ordinary words are never judged for meaning.
When a person decides
A single generic word, such as Heading, Title or Label, is sent for review. It is usually a leftover too, but an artwork can really be called Untitled, and a page can really be about headings.
Example
Fails
<h2>Add your heading text here</h2>
<p>The studio is open to visitors every Saturday.</p>
Passes
<h2>Visiting the studio</h2>
<p>The studio is open to visitors every Saturday.</p>
The engine is tested against both examples.
How to fix it
Replace the template text with words that name what the section is about, or what the field asks for.
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.