ARIA Structure Roles
ARIA role: separator
A divider between groups of content or an interactive adjustable splitter. Prefer hr for static separator. A focusable splitter needs a name and current value plus keyboard resizing; its semantics differ from a static separator. The example demonstrates a native equivalent or preferred alternative and deliberately omits redundant ARIA. 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="separator"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token separator; use only where allowed. Omit when native semantics match. |
| aria-orientation | token | Relevant when applicable. Describes the orientation of a widget or separator. It does not change layout or arrow-key handling. Set it to match real visual and interaction orientation, considering role-specific defaults. Values: horizontal, vertical, undefined. |
| aria-valuenow | number | Relevant when applicable. Reports the current numeric value of a range control or indicator. Keep it within its declared bounds and update as the value changes. Supply aria-valuetext when the numeric value alone is insufficient. Values: finite numeric current value. |
Working Example
Example Snippethtml
<p>Part one</p><hr><p>Part two</p>