What Are the Three Types of ARIA Attributes? (2024)

Sep 12, 2022

WAI-ARIA (Web Accessibility Initiative - Accessible Rich Internet Applications, often referred to as simply ARIA) is a technical specification intended to improve accessibility.

Created by the World Wide Web Consortium (W3C), ARIA provides additional information about certain web elements, which enables screen readers and other assistive technologies (AT) to present those elements to the user. This information is delivered in three ways: roles, states, and properties.

By understanding how these attributes function, you can build content that works for a wider range of users. However, it’s important to remember that native HTML is always preferable to ARIA. In other words, you should only use ARIA if it’s absolutely necessary for defining the semantics of your content.

If you’re new to ARIA, we recommend reviewing common ARIA misconceptions and reading the W3C’s Using ARIA guide before writing markup. Some mistakes can create additional barriers for people who use AT, so you’ll need to test carefully. Working with an accessibility partner can ensure that your content works predictably.

What are ARIA roles, states, and properties?

A role defines the type of user interface element. A state or property supports those roles by providing extra information about any changes that occur.

In other words, an element’s role won’t change, but its state or property might change. Generally, the state changes frequently, while the property changes much less often.

ARIA Roles: A Brief Overview

WAI-ARIA roles define the structure of content when native HTML cannot. Once again, that’s an extremely important point: If you can use native HTML to define an element, you should always do so.

ARIA roles fall into one of six categories:

  1. Document Structure roles, which describe the structure of a section of content.
  2. Widget roles, which define interactive patterns (especially JavaScript widgets).
  3. Landmark roles, which identify the organization and structure of a web page.
  4. Live Region roles, which define elements of content that will change dynamically.
  5. Window roles, which define dialog boxes, alerts, and other sub-windows to the main document window.
  6. Abstract roles, which are only used by browsers and should not appear in HTML markup.

Developers will only use ARIA roles from the first five categories.

Since roles change the presentation of content for AT users, they must be used correctly — misusing the “application" role, for example, might prevent screen reader users from regaining control of their computers.

Related: Avoid Accessibility Issues When Using ARIA's "Application" Role

ARIA States & Properties

ARIA states are often updated with JavaScript, and as we discussed above, they may change frequently. Properties typically describe relationships between the element and other elements, so they’re often less dynamic.

States and properties fall into one of four categories:

  1. Widget attributes
  2. Live region attributes
  3. Drag-and-drop attributes
  4. Relationship attributes

States and properties may be associated with the ARIA role of the element. However, global attributes such as aria-live apply to all HTML elements, regardless of whether those elements have an ARIA role.

This is another reason to test your content — states and properties need to be correctly applied to elements to improve accessibility.

Related: 4 Questions to Ask Before Using ARIA

A Quick Example of ARIA Markup

To understand how roles, states, and properties work together, here’s an example of a progress bar widget from the Mozilla Developer Network’s ARIA resource page:

<div id="percent-loaded" role="progressbar" aria-valuenow="75"

aria-valuemin="0" aria-valuemax="100">

</div>

In this example, the “progressbar" role tells the user that they’re encountering a progress bar.

For many purposes, the HTML <progress> element could be used instead. However, in this case, the progress bar uses the <div> element, which has no semantic value. ARIA is necessary to make the progress bar accessible for assistive technologies.

The aria-valuenow, aria-valuemin, and aria-valuemax attributes convey the current value, minimum value, and maximum value of the slider, respectively. Without these attributes, the user might not understand how to use the element.

Related: How ARIA Can Help Make Your Website Accessible

Before using ARIA, make sure it’s essential — and test your work

Many developers treat WAI-ARIA as an afterthought. This is a mistake: Your ARIA implementation will affect the experiences of AT users, and if you don’t test your content, you’re taking a major risk.

The W3C recommends using ARIA in three specific circ*mstances:

  • The feature is available in HTML but it is not implemented or it is implemented, but accessibility support is not.
  • The visual design constraints rule out the use of a particular native element, because the element cannot be styled as required.
  • The feature is not currently available in HTML.

If your website doesn’t have dynamic content, you might not need ARIA at all — but once you’ve made the decision to use ARIA, you should commit to using it appropriately.

Automated accessibility audits can be helpful for identifying certain ARIA issues. However, some ARIA issues require human judgment and expertise. An experienced accessibility partner can help you avoid mistakes, test your content against the W3C’s Web Content Accessibility Guidelines (WCAG), and provide your users with an optimal experience.

For assistance with ARIA, contact the Bureau of Internet Accessibility or test your content with our free automated WCAG 2.1 Level AA compliance summary.

What Are the Three Types of ARIA Attributes? (2024)

FAQs

What Are the Three Types of ARIA Attributes? ›

There are three types of attributes available in ARIA: roles, states, and properties. Roles are a way to give semantic meaning to HTML elements that traditionally do not have any semantic meaning, such as <div> or <span> .

What are aria attributes? ›

ARIA attributes enable modifying an element's states and properties as defined in the accessibility tree. Note: ARIA only modifies the accessibility tree, modifying how assistive technology presents the content to your users. ARIA doesn't change anything about an element's function or behavior.

What are the three types of attributes sets? ›

The three types of attribute sets are: United, Relations, and Exploration are the three types of attribute sets. Attribute sets are sets that have attributes pre-loaded into them. An Attribute Set is a group of pre-defined product attributes that are utilized to show the products to the customers.

How many aria properties are there? ›

There are 38 properties that can be used in ARIA. They fall into 4 categories as defined by the W3C. The categories are: Widget Attributes.

What are the aria categories? ›

The ARIA Awards are given in four fields: ARIA Awards (for general and genre categories), Fine Arts, Artisan and Public Vote.

What are the two types of aria? ›

Types of operatic aria became known by a variety of terms according to their character – e.g.aria parlante ('speaking-style', narrative in nature), aria di bravura (typically given to a heroine), aria buffa (aria of a comic type, typically given to a bass or bass-baritone), and so on.

What is the aria current attribute? ›

The aria-current attribute accepts a limited list of values including page , step , location , date , time , true , and false . Any non-null string value not included in this list of enumerated values is treated as if aria-current="true" were set, not the default false value.

What is an example of ARIA? ›

Commonly used examples: Examples include aria-atomic , aria-busy , and aria-live (i.e. aria-live=“polite” ).

What does ARIA stand for? ›

ARIA is a W3C specification that stands for “Accessible Rich Internet Applications.” It consists of markup that can be added to HTML in order to communicate the roles, states, and properties of user interface elements to assistive technologies (AT).

What is the first rule of ARIA? ›

First Rule of ARIA: Don't use ARIA. Well, actually, it says "if you can use a native HTML element or attribute... then do so." So, if you need a textbox, use an input, if you need a dropdown, use a select, if you need a button, use a button.

What are the three types of aria attributes trailhead? ›

There are three types of attributes available in ARIA: roles, states, and properties.

What is the aria selected attribute? ›

Description. The aria-selected attribute indicates the current "selected" state for gridcell , option , row and tab roles. This attribute is used to indicate which elements within single-selection and multiple-selection composite widgets are selected.

What are the key features of an aria? ›

A self-contained piece for solo voice, usually accompanied by orchestra. In opera, arias mostly appear during a pause in dramatic action when a character is reflecting on their emotions. Most arias are lyrical, with a tune that can be hummed, and many arias include musical repetition.

What is aria-label attribute used for? ›

ARIA (Accessible Rich Internet Applications) labels are attributes that can be added to HTML elements to provide additional information about the element's purpose and functionality to assistive technologies, such as screen readers.

What is the difference between aria attributes and data attributes? ›

Data attributes are not exposed to the accessibility tree, while aria attributes are. It is also important to note that aria attributes also do not modify how an element looks or behaves! It is only for assistive technologies, which reads the DOM's accessibility tree.

What is an aria example? ›

An example of this is the "aria-expanded" state, which indicates whether a collapsible section, such as a navigation menu, is currently expanded or collapsed. This allows assistive technologies to notify users about the current state of the section and adapt their browsing experience accordingly.

Top Articles
India’s fintech boom: Innovation, impact and potential - Express Computer
How do you tailor your leadership style to diverse situations?
Devotion Showtimes Near Xscape Theatres Blankenbaker 16
My Arkansas Copa
Sound Of Freedom Showtimes Near Governor's Crossing Stadium 14
Plaza Nails Clifton
Botanist Workbench Rs3
Lexington Herald-Leader from Lexington, Kentucky
Craigslist Cars And Trucks Buffalo Ny
More Apt To Complain Crossword
Sotyktu Pronounce
Moonshiner Tyler Wood Net Worth
Byte Delta Dental
Walmart Double Point Days 2022
Procore Championship 2024 - PGA TOUR Golf Leaderboard | ESPN
Cpt 90677 Reimbursem*nt 2023
Soccer Zone Discount Code
Lazarillo De Tormes Summary and Study Guide | SuperSummary
Where to Find Scavs in Customs in Escape from Tarkov
R Personalfinance
TBM 910 | Turboprop Aircraft - DAHER TBM 960, TBM 910
Exterior insulation details for a laminated timber gothic arch cabin - GreenBuildingAdvisor
/Www.usps.com/International/Passports.htm
Dcf Training Number
Sef2 Lewis Structure
Red Cedar Farms Goldendoodle
Disputes over ESPN, Disney and DirecTV go to the heart of TV's existential problems
Koninklijk Theater Tuschinski
Anonib Oviedo
Craigslist Dubuque Iowa Pets
Myra's Floral Princeton Wv
Dentist That Accept Horizon Nj Health
Kids and Adult Dinosaur Costume
UPS Drop Off Location Finder
Baldur's Gate 3 Dislocated Shoulder
Giantess Feet Deviantart
Craigslist In Myrtle Beach
Jr Miss Naturist Pageant
Mississippi State baseball vs Virginia score, highlights: Bulldogs crumble in the ninth, season ends in NCAA regional
Domino's Delivery Pizza
The 50 Best Albums of 2023
Kgirls Seattle
Maxpreps Field Hockey
How To Paint Dinos In Ark
Housing Intranet Unt
Xxn Abbreviation List 2023
511Pa
2007 Jaguar XK Low Miles for sale - Palm Desert, CA - craigslist
Beaufort SC Mugshots
2132815089
Latest Posts
Article information

Author: Arline Emard IV

Last Updated:

Views: 6027

Rating: 4.1 / 5 (72 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Arline Emard IV

Birthday: 1996-07-10

Address: 8912 Hintz Shore, West Louie, AZ 69363-0747

Phone: +13454700762376

Job: Administration Technician

Hobby: Paintball, Horseback riding, Cycling, Running, Macrame, Playing musical instruments, Soapmaking

Introduction: My name is Arline Emard IV, I am a cheerful, gorgeous, colorful, joyous, excited, super, inquisitive person who loves writing and wants to share my knowledge and understanding with you.