Favorites

ARIA directory Role

The directory role is deprecated in WAI-ARIA 1.2. Use list instead.

directory
ARIA Document Structure RoleBrowser support for this ARIA role is currently unknown.
Deprecated Updated 28th November 2026

The deprecated directory role marked a list of references to members of a group, such as a table of contents. Use the list role instead.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Description

The directory role was used for a list of references to members of a group, such as a static table of contents. It was deprecated in WAI-ARIA 1.2 because it was never well supported and was hard to distinguish from a list.

Use a list instead: a <ul> or <ol> of links, inside a <nav> if it is a table of contents for the page.

Properties

Category
Document Structure
HTML equivalent
None
Accessible name from
author, contents
Required parent role
None
Required child roles
None

ARIA Attributes

Required
None
Supported
None
Prohibited
None
Global
All global ARIA attributes can also be used, such as aria-label, aria-labelledby, aria-describedby, aria-hidden.

Syntax

<element role="directory">

Example

<!-- Instead of role="directory" -->
<nav aria-label="Contents">
<ol>
<li><a href="#intro">Introduction</a></li>
<li><a href="#usage">Usage</a></li>
</ol>
</nav>

Browser Support

The following information will show you the current browser support for the directory ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.

Browser support for this ARIA role is currently unknown.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee