ARIA Structure Roles
ARIA role: document
A region containing document content for reading. Ordinary HTML documents already have document semantics; useful in some application-mode contexts. Do not use just to style content. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.
Formal Syntax & Structure
html syntaxhtml
role="document"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token document; use only where allowed. Omit when native semantics match. |
Working Example
Example Snippethtml
<div role="document"> <h2>Help</h2> <p>Use the toolbar to edit.</p></div>