---
title: Avoid Deprecated ARIA Roles | Accessibility Rule
description: Deprecated ARIA roles must not be used
source_url:
  html: https://testingbot.com/support/accessibility/web/rules/aria-deprecated-role
  md: https://testingbot.com/support/accessibility/web/rules/aria-deprecated-role/index.md
---
# Make sure elements do not use deprecated roles

Rule ID: aria-deprecated-roleUser Impact: minorGuidelines: WCAG 2.0

## About This A11Y Rule

This rule ensures that ARIA role attributes do not use deprecated or abstract values. Deprecated roles are those that the ARIA specification no longer recommends. Abstract roles are intended for user agent implementation and must not be used by web developers.

## Why It Matters

Using deprecated ARIA roles can cause elements to be unrecognized by assistive technologies, leading to accessibility issues. This may prevent users from accessing essential information.

## How to Fix

Replace deprecated roles with their modern equivalents. For example, use the `list` role instead of the deprecated `directory` role.

### Example

#### Fail

The following example uses the deprecated `directory` role:

    <div role="directory">
      ...
    </div>

#### Pass

In this corrected example, the valid `list` role is used:

    <div role="list">
      ...
    </div>

## Other Rules

Interested in other web accessibility rules? Please see these other rules:

- [aria-hidden-body](https://testingbot.com/support/accessibility/web/rules/aria-hidden-body)
- [aria-hidden-focus](https://testingbot.com/support/accessibility/web/rules/aria-hidden-focus)
- [aria-input-field-name](https://testingbot.com/support/accessibility/web/rules/aria-input-field-name)
- [aria-meter-name](https://testingbot.com/support/accessibility/web/rules/aria-meter-name)
- [aria-progressbar-name](https://testingbot.com/support/accessibility/web/rules/aria-progressbar-name)
