---
url: "https://web.dev/articles/aria-poison-or-antidote"
titulek: "ARIA: poison or antidote? | Articles | web.dev"
h1: "ARIA: poison or antidote? Stay organized with collections Save and categorize content based on your preferences."
popis: "How lying to screen readers cures accessibility, when it doesn't rub salt in it!"
jazyk: "en"
kanonicka: "https://web.dev/articles/aria-poison-or-antidote"
drobecky: ["Articles", "ARIA: poison or antidote?"]
zdroj: "live"
wayback_snapshot: ""
stazeno: "2026-09-14 00:03:35"
znaku: 13992
slov: 2391
kodovani: "iso-8859-2"
sha256: "a754f43ad7dfd8e0ad0de38dcbd41e71660c443bf008c31c4d44c477fb01ee35"
---
ARIA: poison or antidote?
Stay organized with collections
Save and categorize content based on your preferences.
Aaron Leventhal
What is ARIA? ARIA lets web authors create an alternative reality, seen only by screen readers. Sometimes it's necessary to expand on the truth or even downright "lie" to screen readers about
what's happening in web content. For example, "focus is really over here!" or "this is really a
slider!". It's like adding magical sticky notes on top of tools and widgets on your workbench. These
magical sticky notes make everyone believe what's written on them. When a magical sticky note exists, it either overrides our belief about what
each tool is or does. For example, if you add ARIA that states "this thing over
here is a glue gun!". Even though it's an empty blue box sitting, the magical
sticky note tells us that it's a glue gun. We can also add, "and it is 30%
full!". The screen reader now reports that there is a 30% full glue gun. The web equivalent to this is to take a plain `div` with an image inside of it, and
use ARIA to say it's a slider at value 30 out of 100. ARIA doesn't make the `div`
a slider; it just tells the screen reader to say it's one. ARIA doesn't affect the appearance of a web page, or the behavior for a mouse or keyboard user.
Only users of assistive technologies notice ARIA's impact. Web developers can add
any arbitrary ARIA without affecting users that aren't running an assistive technology. You read it right: ARIA doesn't actually do anything to keyboard focus or tab order. That's all done
in HTML, sometimes tweaked with bits of JavaScript. How does ARIA work? Browsers are asked by a screen reader or other assistive technology for
information about each element. When ARIA is present on an element, the browser
takes in the information and changes what it tells the screen reader about that
element. Here are some common uses of ARIA. Add special components that don't exist in HTML, like autocomplete, a tree, or
a spreadsheet. Add components that exist in HTML, but the author decided they should reinvent,
possibly because they wanted to change the behavior or appearance of the
standard element. For example, an HTML `` element is
basically a slider, but authors want to make it look different.
In most cases, this could be addressed with CSS. However, for `range`, CSS
is awkwARD. Authors can make their own slider and use `role="slider"`
with `aria-valuenow` to tell the keyboard what the current value is. Include live regions to tell screen readers about relevant changes to an area
of a page. Create landmarks, such as headings. Landmarks help screen reader users find
what they want, faster. Landmarks can contain an entire related area. For
example, "this container is the main area of the page" and "this
container over here is a navigation panel". Why ARIA? It can be useful to add some ARIA to HTML that already works. For example, we
might want a form control to point to an error message alert for an invalid
input. Or we might want to indicate the specific use of a text input. These
tweaks can make ordinary websites more usable with a screen reader. Let's say the local web store doesn't sell all the widgets we need. But, we are
[MacGyver](https://www.cbs.com/shows/macgyver/). We can just invent our own widgets from
other widgets! This is pretty similar to a web author who needs to make a menu bar. While the `