Perceivable · 1.3 Adaptable

Identify Purpose WCAG 1.3.6 · Level AAA

In content built with markup languages, the purpose of interface components, icons and page regions must be programmatically determinable, for example through landmarks, autocomplete values or standard semantic attributes.

Level
AAA
Since
WCAG 2.1
Principle
Perceivable
Guideline
1.3 Adaptable

Live demo

Swap the icons for words

The same task, done two ways: switch between the version that passes and the one that fails, or put them side by side. Everything in the box is live, so try it with a keyboard, a pointer or a screen reader.

Turn on Personalise in each version and watch which icons change into words.

Live example

Passes

Winter boots

Waterproof leather boots with a warm lining, $89.

Free returns within 30 days.

What happened

    Why it passes

    The purpose of each icon and each region is marked up in code, so the Personalise switch can replace the icons with plain words the person recognizes.

    Why it fails

    The icons have names for screen readers, but their purpose is not marked up and the regions are plain div elements. Personalise cannot change anything, so the person has to guess what each picture means.

    Examples

    Code that fails, and the fix

    Five examples, each one running: the usual ways this criterion fails, and code that passes. Listen to them, measure them, or copy the code.

    01What changes 6 lines

    Fails

    Page regions built only from divs

    Live preview

    HTML
    <div class="top">  <div class="menu"><a href="/">Home</a> <a href="/deals">Deals</a></div></div><div class="content">  <h1>Today's deals</h1></div><div class="bottom">Customer service: 0800 123 456</div>

    div elements carry no meaning, so tools cannot find the navigation or the main content, or hide everything else to simplify the page.

    Passes

    Landmark elements for each region

    Live preview

    HTML
    <header>  <nav aria-label="Main"><a href="/">Home</a> <a href="/deals">Deals</a></nav></header><main>  <h1>Today's deals</h1></main><footer>Customer service: 0800 123 456</footer>

    header, nav, main and footer map to the banner, navigation, main and contentinfo landmark roles, so the purpose of each region is machine-readable.

    02What changes + aria-label="Delete message"

    Fails

    Icon button with no stated purpose

    Live preview

    HTML
    <button type="button" class="icon">  <svg viewBox="0 0 24 24" aria-hidden="true">    <path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13"/>  </svg></button>

    Only the trash can picture shows that this button deletes. Nothing in the code states it, so assistive tools cannot present it as a word or a familiar symbol.

    Passes

    Icon button with its purpose in code

    Live preview

    HTML
    <button type="button" class="icon" aria-label="Delete message">  <svg viewBox="0 0 24 24" aria-hidden="true">    <path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13"/>  </svg></button>

    The accessible name states what the button does in code, not only in the picture, so assistive tools can speak or show it in a form the person understands.

    Passes

    Search region identified in code

    Live preview

    HTML
    <form role="search">  <label for="q">Search products</label>  <input id="q" name="q" type="search">  <button type="submit">Search</button></form>

    role="search" marks the purpose of the region, so assistive tools can take the person straight to the site search.

    Why it matters

    Who it helps

    People with cognitive disabilities can use tools that add familiar symbols, hide nonessential content or simplify the page, which only works when purposes are machine-readable.

    W3C: Understanding 1.3.6
    • Level AAA

      Level AAA is the highest level. It is not required for whole sites, but it is worth meeting where you can.

    • In WCAG versions

      Added in WCAG 2.1 in June 2018, and kept in 2.2.

      No WCAG 1.0 checkpoint maps to it.

    • Where it is required

      No law on this site requires Level AAA criteria for whole sites.

    How to test

    Checking it

    A few concrete steps. Automated tools find some failures; most need a person.

    1. Check that regions such as the header, navigation, main content and footer are identified with landmark elements or roles.
    2. Check that common controls and icons, such as search, help and home, expose their purpose in code, not just visually.

    Common failures

    Where it breaks

    • A page built entirely from generic div elements has no landmarks for navigation, main content or footer.
    • Icon-only controls show their purpose only in the picture, with nothing in the code identifying it.