# Headings and Labels: Describe Topic or Purpose

Source: https://allyway.ai/glossary/headings-and-labels

Headings and Labels is WCAG success criterion 2.4.6 (Level AA). Headings and labels describe topic or purpose, so people can tell what a section contains or what a field expects.

Headings and labels are the signposts of a page: a heading tells people what the next section is about, a label tells them what to type into a field. WCAG 2.4.6 asks that both are descriptive. "Section 2" or a field labeled "Info" technically exists, but nobody can tell from it what to expect.

## What it means

[WCAG 2.4.6 Headings and Labels](https://www.w3.org/WAI/WCAG22/Understanding/headings-and-labels.html) is a Level AA criterion with one short sentence: headings and labels describe topic or purpose. It does **not** require you to add headings or labels – if they are there, they have to be clear. Short is fine: W3C notes that a word, or even a single character, may suffice if it is an appropriate cue.

Descriptive headings let people predict what a section contains. That helps people who read slowly, people with limited short-term memory, and [screen reader](https://allyway.ai/glossary/screen-reader) users who jump from heading to heading or pull up a list of all headings. Descriptive labels tell people filling in a form what input is expected.

| Criterion | What it checks |
|---|---|
| 1.3.1 Info and Relationships | Headings and labels are marked up so software can read them |
| 2.4.6 Headings and Labels | Their words describe the topic or purpose |
| 3.3.2 Labels or Instructions | Fields that need input have a label or instructions at all |
| 4.1.2 Name, Role, Value | Controls have an accessible name |

> **Note:** > **Markup and wording are checked separately**
> A `<p class="big">` that only looks like a heading fails [info and relationships](https://allyway.ai/glossary/info-and-relationships), even if its words are perfect. A real `<h2>` with the text "More" passes 1.3.1 but fails 2.4.6. You need both: correct [heading structure](https://allyway.ai/glossary/heading-structure) and descriptive words.

## Examples

```html title="Example"
<!-- Unclear: the heading and labels say nothing -->
<h2>Section 2</h2>
<label for="f1">Info</label>
<input id="f1" type="text">

<!-- Descriptive: topic and purpose are clear -->
<h2>Delivery times and shipping costs</h2>
<label for="first-name">First name</label>
<input id="first-name" type="text" autocomplete="given-name">
<label for="last-name">Last name</label>
<input id="last-name" type="text" autocomplete="family-name">

<!-- Icon button: the label describes the purpose -->
<button type="submit" aria-label="Search">
  <svg aria-hidden="true" focusable="false">…</svg>
</button>
```

The search icon is a W3C example: a magnifying glass with the label "search" describes its purpose. For more on naming controls see [accessible name](https://allyway.ai/glossary/accessible-name) and [form labels](https://allyway.ai/glossary/form-labels).

**Do:** Do

Write headings that name the topic ("Opening hours in Vienna"), keep them unique on the page, put the key word first, and label fields with what to enter ("Email address", "Date of birth").

**Don't:** Don't

Use vague headings like "Welcome", "More" or "Section 1", repeat the same heading for different sections, or label fields with "Field 1", "Text" or only a placeholder.

## How to check headings and labels



## Questions

Q: Does WCAG 2.4.6 require every page to have headings?
A: No. W3C states that the criterion does not require headings or labels. It only applies when headings or labels are present: then they must describe topic or purpose. Other criteria, such as 1.3.1, cover marking up content that looks like a heading.

Q: How long should a heading be?
A: As long as needed to be clear, and usually short. W3C notes that a single word, or even a single character, can be enough if it gives an appropriate cue – for example "Prices" above a price table.

Q: Is a placeholder a descriptive label?
A: A placeholder disappears as soon as someone types, so it is a weak label. Use a visible label element; a placeholder can add an example of the format.

Q: What is the difference between 2.4.6 and 3.3.2?
A: 3.3.2 Labels or Instructions (Level A) asks that input fields have a label or instructions at all. 2.4.6 Headings and Labels (Level AA) asks that those labels, and all headings, are descriptive.
