Info and Relationships
Structure you can see has to exist in the markup too. Headings marked up as headings, lists as lists, table headers as table headers, labels tied to their fields. Strip the stylesheet: if the relationships vanish, they were never really there.
- Principle
- Perceivable
- Guideline
- 1.3
- Level
- A
- In WCAG since
- 2.0
- Number
- 1.3.1
Broken, then fixed
The same interface twice: first with the mistake, then with the smallest change that fixes it.
Styling stands in for structure.
A span in bold 20px, and two more with dashes typed in front. To a screen reader this is three sentences in a row: no heading to jump to, no list to count, no way to skim.
The same appearance, built from real elements.
Shipping and returns
- Orders leave the warehouse within two days
- Returns are free within thirty days
Identical on screen. Now it is announced as "heading level 3" and "list, 2 items", and it survives a stylesheet that fails to load.
What changed in the code
The fix as a diff: removed lines are marked with a minus, added lines with a plus.
removed: <span class="h">Shipping and returns</span>
removed: <span class="li">— Orders leave within two days</span>
added: <h2>Shipping and returns</h2>
added: <ul><li>Orders leave within two days</li></ul>
The CSS does not need to change. Restyle the real elements to look how the fake ones looked, and nothing is lost visually while everything is gained structurally.
How to test
Check your own interface against 1.3.1, one step at a time.
- Open the page with styles turned off (in Firefox, View > Page Style > No Style). Check headings, lists, tables and form fields still read as what they are.
- List the headings with the accessibility inspector or a free extension such as WAVE or HeadingsMap. Check every piece of text that looks like a heading is marked up as one, and nothing else is.
- Inspect each list and check it uses ul, ol or dl elements, not lines of text with dashes or line breaks.
- Inspect each data table. Check it is built from table elements, not a grid of div elements, and that its header cells are th elements.
- Select each form field in the accessibility inspector and check its name comes from its visible label. Check each group of radio buttons or checkboxes sits in a fieldset with a legend, or in a group with a name.
- Look for meaning carried only by styling, such as bold for required fields or a shaded row for the selected item, and check the same information is in the markup or the text.
Common questions
Does skipping a heading level fail 1.3.1?
No. 1.3.1 asks that headings are marked up as headings. W3C’s guidance does not make skipping a level, such as h2 to h4, a failure, though an outline in order is easier to move through.
Does text that looks like a heading have to be a heading element?
Yes. If bold or large text works as a heading on screen, a screen reader user needs it marked up as one, with h1 to h6 or role="heading". Styling alone is a listed failure of 1.3.1.
Do layout tables fail 1.3.1?
Only when they claim structure they do not have, such as th elements for cells that are not headers. A layout table of plain cells does not fail 1.3.1, though CSS layout is the better choice.
Try it yourself
A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.
Try it: build the structure
How to use this lab
- Goal. Build a mock form or table so that a screen reader finds its structure, not just its look.
- The controls. “The mock” switches between A form and A table. Each tick box under “Built from real elements”, such as The heading is an <h3>, rebuilds one part with the real element, and nothing changes on screen. Screen reader says lists the structure a screen reader finds.
- Try this. The lab starts with every part built from styled divs. Tick the boxes under “Built from real elements” one at a time and watch Screen reader says gain a heading, a list and named fields. Then choose A table and do the same.
- What it means. 1.3.1 passes once every part of the mock is a real element. While any part is only styled, people using a screen reader can’t tell a heading, a list, a field’s label or a table header from plain text, even though it looks right. The verdict line under the lab says which.
Screen reader says
1.3.1 fails
Also in guideline 1.3
Criteria in the same guideline often fail together.
- 1.3.2, PerceivableLevel A
Meaningful Sequence
Fails when: The visual order and the document order disagree.
- 1.3.3, PerceivableLevel A
Sensory Characteristics
Fails when: The instruction relies on where things happen to sit.
- 1.3.4, PerceivableLevel AA
Orientation
Fails when: The app refuses to work sideways.
- 1.3.5, PerceivableLevel AA
Identify Input Purpose
Fails when: Nothing tells the browser what these fields are for.