TOPIC 02/1118 MINNOT STARTED

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.

  1. Use a real element
  2. Give it a clear name
  3. Keep its state true
  4. Check outline and landmarks
  5. Test by keyboard
Use the real jar and label it truthfully

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A jarA page element
The label on the jarThe name and role
Whether the jar is full or emptyA state such as expanded
A jar that really opensBuilt-in keyboard use
The contents card on the pantry doorThe heading outline
The named shelves of the pantryPage landmarks
Going straight to the baking shelfSkipping blocks that repeat
A card sized for looks, not for its shelfA heading level picked by font size
A pencil note that wipes off when you lift the jarA 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.

What each part of the trick stands for
In the trickWhat it stands for
HeadingsA heading outline is the list of headings on a page, in order and by level
LandmarksA page landmark is a named area, such as the header, the menu, the main content or the footer
Custom partsDoes 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
  1. 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)

    The first rule of Accessible Rich Internet Applications (ARIA): use a native HyperText Markup Language (HTML) element when one gives the meaning and behaviour needed. · Checked 2026-10-18

    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.

  2. 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)

    The warning that no Accessible Rich Internet Applications (ARIA) is better than bad ARIA, and that a role does not add keyboard behaviour. · Checked 2026-10-18

    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.

  3. 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)

    Roles, states and properties, and which roles need an accessible name. · Checked 2026-10-18

    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.

  4. 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)

    Why custom controls must expose a name, a role and their states to assistive technology. This is the 2.1 page; the criterion text is the same in 2.2. · Checked 2026-10-18

    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.

  5. 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)

    Per the search excerpt, a real button element works with the keyboard and screen readers without extra work, while a plain box made to look like a button needs focus, a role and key handling added by hand. · Checked 2026-10-18

    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.

  6. 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)

    Explains that information and relationships shown by looks, such as headings, lists, table rows and grouped form fields, should be available in code. Official explanatory page; the standard itself is the normative text. · Checked 2026-10-18

    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.

  7. 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)

    Explains that a way to skip blocks that repeat on pages, such as a skip link, landmarks or headings, is needed. Official explanatory page. · Checked 2026-10-18

    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.

  8. 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. · Checked 2026-11-06

    Live informative guidance, opened 2026-11-06. Explains that APG is not a normative standard. Paraphrased for education; original rights remain with publisher.

  9. 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. · Checked 2026-11-06

    Live informative pattern, opened 2026-11-06. Menu button roles, states, Enter/Space and focus. Paraphrased for education; original rights remain with publisher.

  10. 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. · Checked 2026-11-06

    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.

  11. 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.

    Roles, states and properties, and which roles need an accessible name. · Checked 2026-10-18

    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.