ARIA States & Properties

aria-orientation

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. Value type: token. Accepted values: horizontal, vertical, undefined. Default or omitted behavior: role dependent. Applicable context: separator, slider, scrollbar, toolbar, tablist and other supported roles. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.

Formal Syntax & Structure

html syntaxhtml
aria-orientation="vertical"

Parameters & Attributes

NameTypeDescription
aria-orientationtokenAccepted values: horizontal, vertical, undefined. Default or omitted behavior: role dependent. Context: separator, slider, scrollbar, toolbar, tablist and other supported roles. Requiredness depends on the role.

Working Example

Example Snippethtml
<div role="separator" aria-orientation="vertical" style="height:40px;border-left:2px solid"></div>
HTML Reference