What each ARIA role announces, which native element does it already, the keyboard behaviour you must write, and the mistake people actually make.
25 roles
25 of them have a native element that does the same job without any ARIA at all.
A role adds no keyboard handling, no focus, no state. A div with role="button" is announced as a button and does not work like one — which is worse than no role, because now it makes a promise.
A button is focusable, responds to Enter and Space, supports disabled, and draws a focus ring. Rebuilding that on a div is four things to get wrong.
Mixing the two gives a control that is announced as one thing and behaves as another. Pick the element that matches what it does.
A wrong role actively misleads a screen reader user; a missing one leaves them with a plain element they can still work out. If you are unsure, leave it off.
An automated check can confirm an attribute is allowed. Only listening tells you whether the result makes sense.
Landmarks let someone jump straight to a region. Screen reader users navigate by them constantly, and a page with none forces reading from the top every time.
role="banner"use <header> when it is not inside an article, aside, main, nav or section insteadAnnounces: The page-wide header: the site identity and the things that appear on every page.
Native element: <header> when it is not inside an article, aside, main, nav or section does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-label
Structure: One per page. A <header> nested inside an article is not a banner.
The mistake people make: Putting a <header> inside <main> and expecting it to be the banner. The native element only maps to banner at the top level, which is the behaviour you want and also the one people are surprised by.
role="navigation"use <nav> insteadAnnounces: A set of links for navigating the site or the page.
Native element: <nav> does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-label, aria-labelledby
The mistake people make: Several <nav> elements with no labels. With more than one, each needs an aria-label — "Main", "Footer", "Breadcrumb" — or they are announced identically and the list is useless. The label must not contain the word "navigation", which is already announced.
role="main"use <main> insteadAnnounces: The primary content, excluding anything repeated across pages.
Native element: <main> does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-label
Structure: Exactly one per page.
The mistake people make: Having none. A skip link usually points at main, and without it the link has nowhere to go. Having two is worse than having none, because neither can be relied on.
role="complementary"use <aside> insteadAnnounces: Content related to the main content but meaningful on its own.
Native element: <aside> does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-label
The mistake people make: Using it for anything in a sidebar. A sidebar holding navigation is a nav, not a complementary region.
role="contentinfo"use <footer> when it is not inside an article, aside, main, nav or section insteadAnnounces: The page-wide footer: copyright, legal links, contact details.
Native element: <footer> when it is not inside an article, aside, main, nav or section does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-label
Structure: One per page.
The mistake people make: The same nesting trap as banner: a <footer> inside an <article> is the article's footer, not the page's.
role="search"use <search> in current browsers; role="search" on a <form> everywhere insteadAnnounces: A search facility, which people look for by landmark more than almost anything else.
Native element: <search> in current browsers; role="search" on a <form> everywhere does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-label
The mistake people make: Leaving the search input unlabelled because the placeholder says "Search". A placeholder is not a label: it disappears on typing and is not reliably announced.
role="region"use <section> with an accessible name insteadAnnounces: A significant area with no more specific role.
Native element: <section> with an accessible name does this already, with its keyboard behaviour, focus and states built in.
Required attributes: aria-label or aria-labelledby — without these the role does not work.
The mistake people make: A <section> with no name is not a landmark at all — it is announced as nothing. The name is what makes it a region, which is why the attribute is required rather than merely advised.
A single interactive control. Almost all of these have a native HTML element that is better in every way.
role="button"use <button> insteadkeyboard workAnnounces: Something that performs an action when activated.
Native element: <button> does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-pressed, aria-expanded, aria-disabled, aria-haspopup
Keyboard you must write: Enter AND Space must both activate it. A native button does this; a div with a click handler does neither, and a keydown handler for Enter alone is the most common half-fix.
The mistake people make: aria-disabled without preventing the action. Unlike the disabled attribute, aria-disabled changes only what is announced — the click handler still fires. Either use a real disabled button or check the state in the handler.
role="link"use <a href> insteadkeyboard workAnnounces: Something that takes you somewhere. If activating it changes the page's location it is a link; if it performs an action it is a button.
Native element: <a href> does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-current
Keyboard you must write: Enter activates a link. Space does not, and must not — Space scrolls the page.
The mistake people make: An <a> with no href. It is not focusable and not announced as a link, which makes it a span wearing blue. If it performs an action rather than navigating, it is a button.
role="checkbox"use <input type="checkbox"> insteadkeyboard workAnnounces: A control with two or three states, independent of its siblings.
Native element: <input type="checkbox"> does this already, with its keyboard behaviour, focus and states built in.
Required attributes: aria-checked — without these the role does not work.
Usually needed too: aria-required, aria-invalid
Keyboard you must write: Space toggles it. Enter does not.
The mistake people make: Forgetting aria-checked="mixed" exists. A parent checkbox over a partially selected group is mixed, not checked, and reporting it as checked tells the person something false.
role="switch"use <input type="checkbox" role="switch"> insteadkeyboard workAnnounces: An on-and-off control where the change takes effect immediately.
Native element: <input type="checkbox" role="switch"> does this already, with its keyboard behaviour, focus and states built in.
Required attributes: aria-checked — without these the role does not work.
Usually needed too: aria-readonly
Keyboard you must write: Space toggles it.
The mistake people make: Using a switch for something that needs saving. A switch implies the change is already applied; if there is a Save button, it is a checkbox.
role="tooltip"use None. The title attribute is not a tooltip replacement — it is not reachable by keyboard or touch. insteadkeyboard workAnnounces: A short description of the element that owns it.
Native element: None. The title attribute is not a tooltip replacement — it is not reachable by keyboard or touch. does this already, with its keyboard behaviour, focus and states built in.
Structure: Referenced by aria-describedby from the element it describes.
Keyboard you must write: It must appear on focus as well as on hover, stay visible while the pointer moves to it, and dismiss on Escape without moving focus. Those three requirements come from WCAG 1.4.13 and are what most tooltips fail.
The mistake people make: Putting essential information in a tooltip. Anything required to complete a task must be available without hovering, because hovering is not possible on a touchscreen and not reliable with a tremor.
A widget containing other widgets, where arrow keys move between the children and Tab moves past the whole thing. These are the hardest patterns to get right and the ones where a library is usually the correct answer.
role="tablist"use None. insteadkeyboard workAnnounces: A set of tabs, each controlling one panel.
Native element: None. does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-orientation, aria-label
Structure: Contains only role="tab" children. Each tab has aria-controls pointing at a role="tabpanel".
Keyboard you must write: Arrow keys move between tabs; Tab leaves the tablist entirely and lands in the panel. Only the selected tab is in the tab order (tabindex="0"); the rest are tabindex="-1". Getting this wrong — leaving every tab tabbable — is the single most common tabs bug.
The mistake people make: Making every tab tabbable. It is not merely untidy: it means Tab walks through ten tabs instead of moving to the content, which is exactly what the arrow-key pattern exists to avoid.
role="tab"use None. insteadkeyboard workAnnounces: One tab in a tablist, which controls the visibility of exactly one panel and reports whether it is the selected one.
Native element: None. does this already, with its keyboard behaviour, focus and states built in.
Required attributes: aria-selected, aria-controls — without these the role does not work.
Usually needed too: tabindex, aria-disabled
Structure: Must be inside a role="tablist".
Keyboard you must write: Managed by the tablist. Selected tab tabindex="0", others tabindex="-1".
The mistake people make: aria-selected on the wrong element, or on more than one. Exactly one tab is selected at a time, and the panel's visibility must match.
role="tabpanel"use None. insteadkeyboard workAnnounces: The content belonging to one tab. It takes its name from the tab that controls it, so the two have to reference each other.
Native element: None. does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-labelledby, tabindex
Structure: Referenced by its tab's aria-controls, and labelled by that tab with aria-labelledby.
Keyboard you must write: Give the panel tabindex="0" when it contains no focusable content, so Tab from the tab lands somewhere.
The mistake people make: Hiding an inactive panel with CSS only. An element hidden with opacity or off-screen positioning is still focusable and still read, so use hidden or display:none.
role="menu"use None. insteadkeyboard workAnnounces: A list of commands, as in an application menu bar.
Native element: None. does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-orientation, aria-labelledby
Structure: Contains role="menuitem", "menuitemcheckbox" or "menuitemradio".
Keyboard you must write: Arrow keys move; Escape closes; Enter activates. Tab closes the menu and moves on.
The mistake people make: Using role="menu" for site navigation. This is the biggest misuse in ARIA. A navigation menu is a list of links in a <nav>; role="menu" tells a screen reader to expect application commands and arrow-key navigation, and then Tab stops working the way the person expects. If it navigates, it is not a menu.
role="combobox"use <input list> with a <datalist> for the simple case insteadkeyboard workAnnounces: A text input with an associated popup of options.
Native element: <input list> with a <datalist> for the simple case does this already, with its keyboard behaviour, focus and states built in.
Required attributes: aria-expanded, aria-controls — without these the role does not work.
Usually needed too: aria-activedescendant, aria-autocomplete
Structure: The popup is a listbox, tree, grid or dialog.
Keyboard you must write: Arrow keys move through options while focus stays in the input, which is what aria-activedescendant is for. Escape closes, Enter commits.
The mistake people make: Moving real focus into the options. Focus must stay in the text input so typing continues to work; the visual highlight is conveyed by aria-activedescendant instead.
role="listbox"use <select> insteadkeyboard workAnnounces: A list of options to choose from.
Native element: <select> does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-multiselectable, aria-label
Structure: Contains role="option".
Keyboard you must write: Arrow keys move the selection; Home and End jump to the ends.
The mistake people make: Rebuilding <select> for styling. A native select gets the platform's own picker on a phone, which is better than anything you will build and which people already know how to use.
Describes how content is organised rather than how it behaves. Mostly provided by native elements already.
role="heading"use <h1> to <h6> insteadAnnounces: A heading at a stated level. Headings are how screen reader users scan a page, so the levels have to describe the real structure rather than the type sizes.
Native element: <h1> to <h6> does this already, with its keyboard behaviour, focus and states built in.
Required attributes: aria-level — without these the role does not work.
The mistake people make: Using a div with role="heading" to avoid heading styles. Use the right heading element and style it; CSS is free and the native element cannot be forgotten.
role="list"use <ul> or <ol> insteadAnnounces: A list of items, announced with its length — "list, five items" — which is why a list of divs reads so differently from a real one.
Native element: <ul> or <ol> does this already, with its keyboard behaviour, focus and states built in.
Structure: Contains role="listitem".
The mistake people make: Setting list-style:none on a <ul> in Safari, which removes the list semantics entirely. Add role="list" back when you do that — it is the one case where adding a redundant role is the correct fix.
role="table"use <table> insteadAnnounces: Data with rows and columns, where the header cells give each value its meaning when read on its own.
Native element: <table> does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-rowcount, aria-colcount
Structure: Rows with role="row", cells with role="cell" and headers with role="columnheader" or "rowheader".
The mistake people make: Rebuilding a table out of divs. If you must, every row and cell needs its role, in the right nesting, and display:contents on any of them breaks the semantics in some browsers.
Announces a change without moving focus. The hardest thing in ARIA to verify, because whether it was announced is invisible.
role="status"use <output> for a form result insteadAnnounces: A status message that does not interrupt.
Native element: <output> for a form result does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-live, aria-atomic
The mistake people make: Adding the region and the message at the same time. A live region has to exist and be in the accessibility tree BEFORE its content changes, or nothing is announced. Render the empty container first, then put text into it.
role="alert"use None. insteadAnnounces: An important message that interrupts whatever is being read.
Native element: None. does this already, with its keyboard behaviour, focus and states built in.
Usually needed too: aria-atomic
The mistake people make: Using alert for anything routine. It interrupts, so a save confirmation announced as an alert talks over the person every time. Use status for that and keep alert for errors.
A region that takes over, with its own focus management.
role="alertdialog"use None. <dialog> gives the dialog behaviour but not the alert semantics. insteadkeyboard workAnnounces: A dialog carrying an urgent message that needs a response.
Native element: None. <dialog> gives the dialog behaviour but not the alert semantics. does this already, with its keyboard behaviour, focus and states built in.
Required attributes: aria-labelledby or aria-label, aria-describedby — without these the role does not work.
Usually needed too: aria-modal
Keyboard you must write: Focus moves into it on open, stays trapped, and returns to the trigger on close. Escape closes it.
The mistake people make: Using alertdialog for a confirmation nobody needs to read. It interrupts and demands attention; a routine confirmation is an ordinary dialog.
role="dialog"use <dialog> with showModal() insteadkeyboard workAnnounces: A window over the page, for a task or a message.
Native element: <dialog> with showModal() does this already, with its keyboard behaviour, focus and states built in.
Required attributes: aria-labelledby or aria-label — without these the role does not work.
Usually needed too: aria-modal, aria-describedby
Keyboard you must write: Escape closes it. Focus moves in on open and back to the trigger on close. In a modal, Tab must not leave it.
The mistake people make: aria-modal="true" without actually trapping focus. The attribute tells assistive technology the rest of the page is unavailable; if Tab still reaches it, what is announced and what happens no longer agree. A native <dialog> opened with showModal() handles this for you.
This is a curated subset of the roles that come up in ordinary web work, not the ARIA specification. Knowing a role’s required attributes does not tell you whether a screen reader announces your particular markup sensibly — that needs listening to it, in more than one screen reader.
ARIA Role Reference runs entirely on your device — this is a reference, so nothing is inspected or sent.
You’re on the Free plan. Compare plans
The first rule of ARIA is not to use ARIA, so the native element comes first in every entry that has one. role="button" on a div requires you to implement focusability, Enter, Space, the disabled state and the focus ring by hand, and each of those is a thing to get wrong. A button has all of them and cannot be got wrong.
A role changes what a thing is announced as and nothing else. It adds no behaviour whatsoever: no keyboard handling, no focus, no state. That single misunderstanding is behind most broken ARIA on the web — a div with role="button" is announced as a button and does not work like one, which is worse than a div with no role at all, because now it also makes a promise.
The keyboard column is therefore the work. Where a role has keyboard behaviour listed, that behaviour is yours to write: a composite widget like a tab list is a single tab stop with arrow-key navigation inside it, and nothing provides that for you. Each entry also names the mistake people actually make with that role, which is more useful than its specification text.
No. A role changes only what assistive technology announces. It adds no keyboard handling, no focus, no state. A div with role="button" is announced as a button and does nothing when pressed — which is worse than a plain div, because it now promises behaviour it does not have.
Because a button is focusable, responds to Enter and Space, supports disabled, draws a focus ring and works with every assistive technology, all without you writing anything. Rebuilding that on a div is four or five separate things to get right.
Yes, measurably. A wrong role actively misleads a screen reader user, who then operates the element as the thing it claims to be. A missing role leaves them with a plain element they can still work out. If you are unsure, leave it off.
You can, and you should not. A button with role="link" is announced as a link and behaves as a button — it activates with Space, which links do not, and it does not appear in a list of links. Pick the element that matches what the thing does.
No. It is a curated subset of the roles that come up in ordinary web work. The specification has many more, most of which exist for application widgets you are unlikely to build by hand.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab