Course contentsShow
← Web Development
Lesson 1013 of 2,98218. Accessibility FundamentalsFree lesson

The Three Core ARIA Properties

Exploring roles, states, and properties as the foundation of ARIA implementation.

The Three Core ARIA Properties

What you'll learn: How ARIA's three fundamental property types—roles, states, and properties—work together to communicate interface meaning to assistive technologies.

ARIA (Accessible Rich Internet Applications) operates through three core types of attributes that you add to HTML elements. Think of them as three different ways to describe what something is, what condition it's in, and what characteristics it has.

Roles: What Is It?

Roles define the type of element or widget. They answer "What is this thing?" For example, role="button" tells assistive technologies "this is a button," even if it's technically a <div>. Roles establish the fundamental identity of an element.

<div role="navigation">
  <!-- This div now announces itself as navigation -->
</div>

States: What Condition Is It In?

States describe dynamic conditions that change during user interaction. They answer "What's happening right now?" For example, aria-expanded="true" indicates a dropdown is currently open, while aria-expanded="false" means it's closed. States are expected to update as users interact with your interface.

<button aria-expanded="false">Menu</button>
<!-- Changes to aria-expanded="true" when clicked -->

Properties: What Are Its Characteristics?

Properties describe relationships and attributes that rarely change. They answer "What else should I know about this?" For example, aria-label="Close dialog" provides a text alternative, or aria-labelledby="title-id" points to another element that labels this one.

<button aria-label="Close notification">×</button>

Think of it like describing a person: their role might be "teacher," their state could be "speaking" or "listening," and their properties include their name and relationships to others.

Key Takeaway: ARIA's three core property types—roles (identity), states (dynamic conditions), and properties (characteristics)—work together to make custom interfaces understandable to assistive technologies.