HTML aria-orientation ARIA Attribute
The aria-orientation attribute tells assistive technology whether a widget such as a slider, tab list or toolbar is laid out horizontally or vertically.
Description
The aria-orientation attribute indicates whether an element is horizontal or vertical. This matters for keyboard use: in a horizontal tab list or toolbar, users expect the Left and Right arrow keys to move between items, while a vertical one uses Up and Down.
Several roles have a default orientation. scrollbar, listbox, menu and tree are vertical by default, while slider, separator, tablist, toolbar and menubar are horizontal. Only set the attribute when your widget differs from the default.
The attribute doesn't change the layout or the keyboard behavior; you must implement both to match the value.
Properties
Syntax
<element aria-orientation="horizontal | vertical">
Values
- horizontalThe element is laid out horizontally.
- verticalThe element is laid out vertically.
- undefinedThe orientation is unknown or not relevant.
Example
Browser Support
The following information will show you the current browser support for the aria-orientation ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





