ARIA document Role
The document role marks content that users should read like a document, with normal screen reader reading keys, often used inside an application role.
Description
The document role identifies an element containing content that assistive technology users may want to browse in reading mode. It is the opposite of application: screen readers use their normal reading commands inside it.
Every web page is already a document, so the role is only needed to switch reading mode back on inside an element with the application role, or inside a widget such as a dialog that contains a lot of text to read, like a message viewer in an email app.
Use the native HTML <html> element where you can: it already has the document role, with the expected keyboard and browser behavior built in.
Properties
- Category
- Document Structure
- HTML equivalent
<html>- Accessible name from
- author
- Required parent role
- None
- Required child roles
- None
ARIA Attributes
- Required
- None
- Supported
aria-expanded- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="document">
Example
Browser Support
The following information will show you the current browser support for the document ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





