Semantic HTML
Building pages with HTML elements that match what things are, like real headings, lists, tables, buttons and form labels, instead of plain boxes styled to look like them. This puts the page's structure into the code, where assistive technology can find it.
Also called semantic markup
Example
A made-up recipe page marks 'Ingredients' and 'Method' as real headings and the ingredients as a real list, so a screen reader user can jump between sections.
When to use it
When you hand over a design, say what each thing is (heading, list, button, label) so developers can use the matching element. WCAG requires structure that is shown visually to also be in the code (Level A). Real buttons also come with keyboard behaviour built in; a box made to look like a button doesn't.
The evidence 4 sourced claims
Every sentence on this card traces back to one of these claims, each linked to its source. How we research
WCAG SC 1.3.1 Info and Relationships (Level A): information, structure and relationships conveyed through presentation can be programmatically determined or are available in text.
Sufficient techniques include using h1–h6 for headings (H42), ol/ul/dl for lists (H48), table markup for tables (H51) and label elements for form controls (H44).
Unlike native HTML input elements, ARIA roles do not make browsers provide keyboard behaviour or styling; giving a div the button role is a promise the author has added the keyboard behaviour.
Providing heading elements at the start of each section (H69) is a sufficient way to let people bypass repeated blocks.