What does ARIA mean?
ARIA stands for Accessible Rich Internet Applications.
Behind the somewhat complicated name is a simple idea: ARIA provides additional information about elements on a website so that assistive technologies like screen readers can better understand what an element means and what state it's currently in.
A simple example is a menu.
A sighted person might immediately recognize that a particular icon opens a menu. A screen reader can't tell that from appearance alone.
With ARIA, the website can provide additional information:
<button aria-expanded="false">
Menu
</button>
This lets the screen reader recognize: there's a button named "Menu" here, and the associated menu is currently collapsed.
When the menu is opened, the value can change:
<button aria-expanded="true">
Menu
</button>
Now the screen reader knows too: the menu is open.
ARIA describes meaning and state
ARIA can provide various kinds of information about an element.
This includes, for example:
- What kind of element is this?
- What is the element called?
- Is it open or closed?
- Is it selected?
- Is it disabled?
- Does it belong to another element?
A typical example is an expandable section with frequently asked questions.
A sighted visitor might immediately tell from an arrow icon whether the answer is currently open or closed. A screen reader needs this state to be understandable too.
ARIA can provide exactly this information.