---
title: Valid aria- Attribute Names | Accessibility Rule
description: ARIA attributes are required to conform to valid names
source_url:
  html: https://testingbot.com/support/accessibility/web/rules/aria-valid-attr
  md: https://testingbot.com/support/accessibility/web/rules/aria-valid-attr/index.md
---
# Ensure attributes that begin with aria- are valid ARIA attributes

Rule ID: aria-valid-attrUser Impact: criticalGuidelines: WCAG 2.0

Attributes that begin with `aria-` must conform to valid ARIA attribute names to ensure proper functionality and accessibility.

## About This Rule

This rule checks for the presence of unrecognized ARIA attributes, which can prevent the attributes from functioning as intended. Ensuring that all ARIA attributes are valid and correctly spelled is essential for assistive technologies to accurately interpret and convey the intended meaning and functionality of web elements.

## Why It Matters

Using unrecognized or misspelled ARIA attributes can prevent the intended accessibility enhancements from functioning correctly. This misconfiguration may lead to assistive technologies failing to interpret and convey the necessary information to users with disabilities, resulting in a diminished user experience.

## How to Fix

Ensure that all ARIA attributes are valid and correctly spelled:

- Verify that each `aria-` attribute corresponds to a recognized ARIA attribute name.
- Consult the WAI-ARIA specifications to confirm the validity and correct spelling of attribute names.
- Utilize authoring and debugging tools that validate ARIA attribute names during development.

Below are the various valid ARIA attribute names.

- [Widget Attributes](http://www.w3.org/TR/wai-aria-1.1/#attrs_widgets)
- [Live Region Attributes](http://www.w3.org/TR/wai-aria-1.1/#attrs_liveregions)
- [Drag-and-Drop Attributes](http://www.w3.org/TR/wai-aria-1.1/#attrs_dragdrop)
- [Relationship Attributes](http://www.w3.org/TR/wai-aria-1.1/#attrs_relationships)
- [Definitions of States and Properties (all aria-\* attributes)](http://www.w3.org/TR/wai-aria-1.1/#state_prop_def)
- [Role Attribute](http://www.w3.org/TR/wai-aria-1.1/#host_general_role)
- [State and Property Attributes](http://www.w3.org/TR/wai-aria-1.1/#host_general_attrs)
- [State and Property Attribute Processing](http://www.w3.org/TR/wai-aria-1.1/#state_property_processing)
- [WAI-ARIA Attributes Module](http://www.w3.org/TR/wai-aria-1.1/#xhtml_mod)
- [WAI-ARIA Attributes XML Schema Module](http://www.w3.org/TR/wai-aria-1.1/#xhtml_schema_mod)

### Example

#### Incorrect

An element with an unrecognized ARIA attribute:

    <div aria-visible="true">Content</div>

#### Correct

The same element with a valid ARIA attribute:

    <div aria-hidden="true">Content</div>

## Other Rules

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

- [blink](https://testingbot.com/support/accessibility/web/rules/blink)
- [button-name](https://testingbot.com/support/accessibility/web/rules/button-name)
- [bypass](https://testingbot.com/support/accessibility/web/rules/bypass)
- [color-contrast](https://testingbot.com/support/accessibility/web/rules/color-contrast)
- [definition-list](https://testingbot.com/support/accessibility/web/rules/definition-list)
