ARIA directory Role
The directory role is deprecated in WAI-ARIA 1.2. Use list instead.
ARIA Document Structure RoleBrowser support for this ARIA role is currently unknown.
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.
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
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





Tablets & Mobile






-
Supported Unknown Not supported
Sponsors
Password Manager
PasswordPal stores your passwords and private notes behind encryption that happens in your browser.
Copy Paste List
Copy and paste or download lists in your preferred format, including plain text, PDF, or HTML.
Unicode Characters & Emojis
Search all Unicode characters and emojis plus other tools.
Check Shortened URLs
Expand shortened URLs to view the destination link.
Advertise Here
Advertise your company and products here!