ARIA and semantic HTML for testers
Plain HyperText Markup Language (HTML) gives meaning and keyboard use for free. Learn how extra labels add names, roles and states to custom parts.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a label on a jar. A good label tells you what is inside. A wrong label is worse than none, because you trust it. A label also does not make the jar open. It only describes the jar.
Daily List is a to-do list app. Leo builds a new share menu from plain boxes. It looks fine and a mouse can open it. Tom turns on a , which reads a page out loud. It says "group" and then nothing useful.
Tom tries the keyboard. The Tab key skips the menu. Leo had used boxes, so the page told the browser nothing about a button. The browser did not give it a name, a role or keyboard use.
Leo swaps the boxes for a real button. The screen reader now says "Share, button". The Tab key reaches it. That is semantic HyperText Markup Language (): elements that say what they are.
For parts that no plain element covers, (ARIA) adds labels for assistive tools. This lesson shows how to test both.
The picture has a limit. A jar label changes nothing about the jar. ARIA is the same: it changes what is announced, not what the part does.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- hypertext
- text that links to other pages
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Giving custom parts honest names, roles and states, using plain elements first, and keeping headings and landmarks true.
- Use a real element
- Give it a clear name
- Keep its state true
- Check outline and landmarks
- Test by keyboard
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A jar | A page element |
| The label on the jar | The name and role |
| Whether the jar is full or empty | A state such as expanded |
| A jar that really opens | Built-in keyboard use |
| The contents card on the pantry door | The heading outline |
| The named shelves of the pantry | Page landmarks |
| Going straight to the baking shelf | Skipping blocks that repeat |
| A card sized for looks, not for its shelf | A heading level picked by font size |
| A pencil note that wipes off when you lift the jar | A placeholder used in place of a label |
WHERE THIS PICTURE STOPS
- A label does not make a jar open. Accessible Rich Internet Applications (ARIA) does not add behaviour either.
- A jar has one label. A page part may have a name, a role and many states.
- A wrong label stays wrong. A state label must change as the part changes.
- A label sits on one jar. The outline and landmarks describe the whole page, so the picture stretches there.
HOOK
Use the real jar, label it truthfully, store it in order.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Walk the page in this order: headings by level, then landmarks, then the role, name and state of each custom part.
| In the trick | What it stands for |
|---|---|
| Headings | A heading outline is the list of headings on a page, in order and by level |
| Landmarks | A page landmark is a named area, such as the header, the menu, the main content or the footer |
| Custom parts | Does it have the right role? Does it have a clear name? Does its state change |
TELL A FRIEND
(ARIA) is a label on a jar. It must be true, and it never opens the jar, while headings and landmarks help people find the shelf.
OFTEN MIXED UP WITH Screen readers, labels and alt text. The lesson covers names and labels. This lesson covers custom parts and the markup behind them.
PRACTISE AND KEEP
Sources for this topic — 11 sources
- Market practice
Using Accessible Rich Internet Applications (ARIA) (W3C Working Group Note) ↗ — World Wide Web Consortium (W3C) · First rule of ARIA: use a native element when one gives the meaning and behaviour (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: World Wide Web Consortium (W3C) Working Group Note. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Read Me First (ARIA Authoring Practices Guide) ↗ — World Wide Web Consortium (W3C) Web Accessibility Initiative · No ARIA is better than bad ARIA, and a role adds no keyboard behaviour (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Accessible Rich Internet Applications (ARIA) 1.2 ↗ — World Wide Web Consortium (W3C) · Roles, states and properties, and which roles need a name (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: World Wide Web Consortium (W3C) Recommendation, 2023. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Understanding Success Criterion 4.1.2: Name, Role, Value (Web Content Accessibility Guidelines 2.1) ↗ — World Wide Web Consortium (W3C) · Success criterion 4.1.2 asks for a name, a role and states that software can read (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
HyperText Markup Language (HTML): a good basis for accessibility (Mozilla developer docs, Learn web development) ↗ — Mozilla (developer documentation) · Native HTML as a good basis for accessibility (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Understanding Success Criterion 1.3.1: Info and Relationships (Web Content Accessibility Guidelines 2.2, World Wide Web Consortium) ↗ — World Wide Web Consortium (W3C) Web Accessibility Initiative · Understanding page for success criterion 1.3.1: structure that is shown by looks, such as headings, lists, table rows and grouped form fields, should also be available in code (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Understanding document for WCAG 2.2. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Understanding Success Criterion 2.4.1: Bypass Blocks (Web Content Accessibility Guidelines 2.2, World Wide Web Consortium) ↗ — World Wide Web Consortium (W3C) Web Accessibility Initiative · Understanding page for success criterion 2.4.1: a way to skip blocks that repeat on pages, such as a skip link, landmarks or headings (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Understanding document for WCAG 2.2. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
ARIA Authoring Practices Guide: introduction ↗ — W3C · Opened 2026-11-06: informative APG is not a normative standard.
Live informative guidance, opened 2026-11-06. Explains that APG is not a normative standard. Paraphrased for education; original rights remain with publisher.
- Market practice
ARIA Authoring Practices Guide: menu button pattern ↗ — W3C · Opened 2026-11-06: native button, menu roles and states, Enter/Space, focus handling.
Live informative pattern, opened 2026-11-06. Menu button roles, states, Enter/Space and focus. Paraphrased for education; original rights remain with publisher.
- Market practice
WCAG 2.2 technique G208: visible label in accessible name ↗ — W3C · Opened 2026-11-06: SC2.5.3; visible label contained in accessible name, not necessarily equal. Informative technique.
Informative technique, opened 2026-11-06. Visible label text included in accessible name; example method, not mandatory code. Paraphrased for education; original rights remain with publisher.
- Market practice
Accessible Rich Internet Applications (ARIA) 1.2 ↗ — World Wide Web Consortium (W3C) · Recommendation 6 June 2023, opened 2026-11-06: roles, states and properties; behaviour must be implemented.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: World Wide Web Consortium (W3C) Recommendation, 2023. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.