diff --git a/_rules/heading-descriptive-b49b2e.md b/_rules/heading-descriptive-b49b2e.md
index f469d6bc92..9eee0d7633 100755
--- a/_rules/heading-descriptive-b49b2e.md
+++ b/_rules/heading-descriptive-b49b2e.md
@@ -1,10 +1,10 @@
---
id: b49b2e
-name: Heading is descriptive
+name: Heading is relevant
rules_format: 1.1
rule_type: atomic
-description: |
- This rule checks that headings describe the topic or purpose of the content.
+description:
+ This rule checks that headings are relevant to a specific topic, purpose or page.
accessibility_requirements:
wcag20:2.4.6: # Headings and labels (AA)
forConformance: true
@@ -13,11 +13,11 @@ accessibility_requirements:
inapplicable: further testing needed
input_aspects:
- Accessibility Tree
- - DOM Tree
- CSS Styling
- Language
acknowledgments:
authors:
+ - Armağan Tekdöner
- Carlos Duarte
- Dagfinn Rømen
- Geir Sindre Fossøy
@@ -30,35 +30,34 @@ acknowledgments:
This rule applies to any [semantic][semantic role] `heading` element that is [included in the accessibility tree][] and has a non-empty (`””`) [accessible name][].
-## Expectation
+## Expectations
-Each target element describes the topic or purpose of the first [perceivable content][] after the test target that is not [decorative][]. The order of elements is determined by the [flat tree][].
-
-**Note:** Headings do not need to be lengthy. A word, or even a single character, may be sufficient.
+Each heading is relevant to the specific page or section where it appears and it is sufficiently intelligible.
## Background
-Headings that are visible but not in the accessibility tree are a failure of [Success Criterion 1.3.1 Info and Relationships][sc131]. These are not tested by this rule but they can still fail [Success Criterion 2.4.6 Headings and Labels][sc246].
+Headings are normally marked as semantic headings using `
` to `
` elements or using generic elements with correct ARIA roles that convert them into semantic headings. On the other hand, on websites that are not adhering to HTML5 semantic coding practices, or that are intended to apply semantics in the code while containing errors in the usage of ARIA roles for example, other elements can be observed that function as headings. Sometimes a heading is a list item, sometimes a figcaption, sometimes a table caption, sometimes another element that is not normally a heading.
+
+Under this rule, "content" refers to any textual or non-textual element presented on the web page, including sections, paragraphs, forms, user interface components, media galleries, lists, or hyperlinks.
-Testing tools treat empty headings `` or `div role="heading" aria-level="1">` differently. Some report that empty headings fail under 1.3.1 Info and Relationships or 2.4.6 Labels or Instructions. Other tools report that these headings pass because they are ignored by most assistive technologies and cause no accessibility barriers at all. This rule does not include examples of empty headings because there is currently no harmonized approach for testing them.
+To pass, a heading must be relevant to its associated content. (Headings consisting of placeholder text or uninformative character strings fail this rule inherently.)
### Assumptions
-This rule assumes that the [flat tree][] order is close to the reading order as elements are rendered on the page. Due to positioning, it is possible to render a document in an order that greatly differs from the tree order, in which case the content which is visually associated with a heading might not be the content following it in tree order and this rule might fail while [Success Criterion 2.4.6 Headings and Labels][sc246] is still satisfied.
+The limitations for the evaluation are live, dynamic content fields (e.g., streaming data feeds, live social walls, or active chat interfaces) where the content updates at a rate that prevents static evaluation against its structural headings or content that is highly specialized, academic, or artistic are exceptions when the evaluator does not possess the necessary know-how to determine whether the heading is relevant.
-This rule also assumes that the content the heading is intended to describe is [visible][] and not hidden from assistive technologies. Otherwise, cases such as expandable content using a heading might fail this rule while [Success Criterion 2.4.6 Headings and Labels][sc246] is still satisfied.
+This rule is designed as a test-to-pass evaluation and failures should be reserved for obviously non-compliant cases. Testers should default to a passing or not applicable result when in doubt.
### Accessibility Support
-Implementation of [Presentational Roles Conflict Resolution][] varies from one browser or assistive technology to another. Depending on this, some [semantic][semantic role] `heading` elements can fail this rule with some technology but users of other technologies would not experience any accessibility issue.
+There are no accessibility support issues known.
### Other Resources
-- [Understanding Success Criterion 1.3.1: Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html)
- [Understanding Success Criterion 2.4.6: Headings and Labels](https://www.w3.org/WAI/WCAG22/Understanding/headings-and-labels.html)
- [G130: Providing descriptive headings](https://www.w3.org/WAI/WCAG22/Techniques/general/G130)
-- [H42: Using h1-h6 to identify headings](https://www.w3.org/WAI/WCAG22/Techniques/html/H42)
-- [ARIA12: Using role=heading to identify headings](https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA12)
+- [Understanding Success Criterion 2.4.10 Section Headings](https://www.w3.org/WAI/WCAG21/Understanding/section-headings)
+- [Use headings to convey meaning and structure](https://www.w3.org/WAI/tips/writing/#use-headings-to-convey-meaning-and-structure)
- [HTML Specification - Heading content](https://html.spec.whatwg.org/#heading-content)
## Examples
@@ -67,154 +66,355 @@ Implementation of [Presentational Roles Conflict Resolution][] varies from one b
#### Passed Example 1
-This `h1` heading element describes the topic of the following paragraph.
+
+This `h1` element that states the functional purpose of the page content is relevant.
+
```html
-
-
Opening Hours
-
We are open Monday through Friday from 10 to 16
-
+
Renewing Your Passport Online
+
If you meet all of these criteria explained in the sections listed below, you can renew your passport online.
```
#### Passed Example 2
-This heading marked up with an [explicit role][] of `heading` describes the topic of the following paragraph.
+This `h1` element about the marketing content that follows is relevant.
```html
-
- Opening Hours
-
We are open Monday through Friday from 10 to 16
-
+
Fresh deals just dropped: Printers
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
```
#### Passed Example 3
-This `h1` heading element with an image describes the topic of the following paragraph.
+This `h2` element for the structured weather forecast table that follows is relevant.
```html
-
-
-
-
-
We are open Monday through Friday from 10 to 16
-
+
Current Weather in New York
+
+
+
Day
+
Condition
+
High / Low
+
+
+
Monday
+
Partly Cloudy
+
18°C / 12°C
+
+
+
Tuesday
+
Sunny
+
22°C / 14°C
+
+
```
#### Passed Example 4
-This `h1` heading element has a single character text that describes the topic of the following description list.
+This `h2` element is descriptive in its function of introducing a chapter of a book.
```html
-
-
A
-
-
airplane
-
- a powered flying vehicle with fixed wings and a weight greater than that of the air it displaces.
-
-
apple
-
- the round fruit of a tree of the rose family, which typically has thin green or red skin and crisp flesh.
-
-
-
+
Chapter 4
+
+ It was the White Rabbit, trotting slowly back again, and looking anxiously about as it went, as if it had lost something; and she heard it muttering to itself "The Duchess! The Duchess! Oh my dear paws! Oh my fur and whiskers! She'll get me executed, as sure as ferrets are ferrets! Where can I have dropped them, I wonder?" Alice guessed in a moment that it was looking for the fan and the pair of white kid gloves, and she very good-naturedly began hunting about for them, but they were nowhere to be seen.
+
```
#### Passed Example 5
-This heading marked up with an [explicit role][] of `heading` describes the topic of the following paragraph. The heading is positioned off screen but is [included in the accessibility tree][].
+This `h3` element used as a generic section heading is relevant.
```html
-
- Opening Hours
-
- We are open Monday through Friday from 10 to 16
-
-
+
Glossary
+
+
API (Application Programming Interface): A set of rules and protocols that allows different software applications to communicate with each other.
+
Cache: A temporary storage area that saves web page resources to improve loading speed on subsequent visits.
+
DOM (Document Object Model): A programming interface for web documents that represents the page structure as a node tree.
+
Metadata: Information embedded within a document or web page that describes its content, author, or properties.
+
Responsive Design: A design approach that ensures web pages render adaptively across a variety of screen sizes and devices.
+
```
#### Passed Example 6
-This heading describes the first [perceivable content][] after it (the first `p` element). The next [perceivable content][] (the second `p` element) is not considered by this rule.
+This `h1` element introducing the subsequent list is relevant.
+
+```html
+
Don't Forget To Bring:
+
+
A valid government-issued photo ID (e.g., passport, driver's license, health card, etc.)
+
Two recent proof of address documents (e.g., utility bill, bank statement, tax letter, etc.)
+
Your printed appointment confirmation letter
+
+```
+
+#### Passed Example 7
+
+This `h1` element is relevant to the purpose of the page content, despite being overly casual and unnecessarily verbose.
+
+```html
+
Welcome to Our State-of-the-Art Brand New Wizard That Will Mail Your Beautiful Loyalty Card Right to Your Doorstep
+
Step 1 of 4: Personal Information
+
+```
+
+#### Passed Example 8
+
+This `h1` element identifying the topic of a travel safety guidance page is relevant, despite containing redundant phrasing.
+
+```html
+
Travel Advisories and Travel Advisory Information
+
+
Keep digital copies of your passport and vital documents stored securely.
+
Monitor local news and official safety channels while abroad.
+
Register your contact details with your embassy prior to departure.
+
+```
+
+#### Passed Example 9
+
+This `h2` element is relevant because it describes the section content, even though the wording is generic and the heading states the obvious.
```html
-
-
+```
+
+#### Passed Example 10
+
+This `h2` element is relevant because it relies on satirical phrasing that connects to the discussion of persistent inflation that follows.
+
+```html
+
Final Day for Savings
+
Everything will be more expensive tomorrow.
+
Persistent inflation continues to erode purchasing power, forcing consumers to adjust to steadily rising costs across basic goods and services.
+```
+
+#### Passed Example 11
+
+This `h3` element is relevant to the section despite containing a duplicated word and a misspelling of "support."
+
+```html
+
Contact Contact Customer Suport
+
Email: support@example.com
+
Phone: 1-800-555-5555
+```
+
+#### Passed Example 12
+
+This `h2` element containing an eyebrow label is relevant to the content that follows.
+
+```html
+
Case study How Acme cut support calls in half
+
Acme replaced its phone menu with an online help centre and halved its call volume in a year.
```
### Failed
#### Failed Example 1
-This `h1` heading element does not describes the topic of the following paragraph.
+This `h1` element is not relevant as its sole content is unremoved placeholder text from a content template. It fails this rule because the heading text serves as a developmental instruction rather than describing the purpose or topic of the page content.
```html
-
-
Weather
-
We are open Monday through Friday from 10 to 16
-
+
[Replace this text with heading 1]
+
If you meet all of these criteria explained in the sections listed below, you can renew your passport online.
```
#### Failed Example 2
-This heading marked up with an [explicit role][] of `heading` does not describe the topic of the following paragraph.
+This `h1` element containing an error message is not relevant. It fails this rule because the displayed text is a system-generated message rather than a heading describing the purpose or topic of the page content.
```html
-
- Weather
-
We are open Monday through Friday from 10 to 16
-
+
Uncaught Error: Call to undefined function get_user_data() in /var/www/html/profile.php on line 42
+
Welcome to your user account dashboard. You can update your profile details and settings below.
```
#### Failed Example 3
-This heading marked up with an [explicit role][] of `heading` does not describe the topic of the following paragraph. The heading is positioned off screen but is [included in the accessibility tree][].
+This `h1` element containing only a timestamp is not relevant. It fails this rule because the date and time string do not identify or describe the primary purpose or topic of the page content.
```html
-
- Weather
-
- We are open Monday through Friday from 10 to 16
-
-
+
2026-06-30 13:46 UTC
+
Our university offers accredited undergraduate and graduate programs across twenty academic departments. Students gain practical experience through faculty-led research labs and community partnerships. Applications for the upcoming fall semester are now open to domestic and international students.
```
#### Failed Example 4
-This `h1` heading element does not describe the first [perceivable content][] after it (the first `p` element). The next [perceivable content][] (the second `p` element) is not considered by this rule.
+This `h1` element is not relevant because the text "Hi" provides no context for the personal information form that follows.
+
+```html
+
Hi
+
Step 1 of 4: Personal Information
+
+```
+
+#### Failed Example 5
+
+This `h1` element is not relevant because "Page 1" as a heading lacks any topic-specific descriptor for the content that follows.
+
+```html
+
Page 1
+
+
Stainless Steel Countertop Microwave
+
Convection Toaster Oven
+
10-Cup Programmable Coffee Maker
+
Quiet-Operation Blender
+
+```
+
+#### Failed Example 6
+
+This `span` element with role="heading" is not relevant because the text provides no discernable context regarding the article links that follow, despite passing other criteria.
+
+```html
+Welcome
+
+```
+
+#### Failed Example 7
+
+This `h2` element misrepresents the operational direction of a financial transaction. The heading text is not relevant, as it explicitly contradicts the functional purpose of the content it introduces.
+
+```html
+
Request Money
+
+```
+
+#### Failed Example 8
+
+This `h1` element that incorrectly states the functional purpose of the page content is not relevant.
+
+```html
+
Renewing Your Passport Online
+
If you meet all of these criteria explained in the sections listed below, you can renew your driver's licence online.
+```
+
+#### Failed Example 9
+
+This `h3` element is not relevant to the section as the text it contains cannot be reliably interpreted to understand what the following emails and phone numbers are for.
```html
-
-
Weather
-
We are open Monday through Friday from 10 to 16
-
It is going to rain tomorrow
-
+
ortcontact Custo
+
Email: support@example.com
+
Phone: 1-800-555-5555
```
### Inapplicable
#### Inapplicable Example 1
-There is no heading.
+This rule is inapplicable because there is no heading.
```html
-
-
+
```
#### Inapplicable Example 2
-This `h1` heading element is not [included in the accessibility tree][].
+This snippet is inapplicable because the heading element has no content to evaluate.
```html
-
-
Opening Hours
-
We are open Monday through Friday from 10 to 16
-
+
```
[decorative]: https://www.w3.org/TR/WCAG22/#dfn-pure-decoration 'WCAG definition of Pure decoration'