Favorites

HTML aria-orientation ARIA Attribute

aria-orientation
ARIA AttributeThis ARIA attribute is supported by all modern browsers.
Updated 28th November 2026

The aria-orientation attribute tells assistive technology whether a widget such as a slider, tab list or toolbar is laid out horizontally or vertically.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

Type
Widget
Value
token
Default
undefined
Used with
listbox, menu, menubar, radiogroup, scrollbar, separator, slider, tablist, toolbar, tree, treegrid

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

<div role="tablist" aria-label="Settings" aria-orientation="vertical" style="display:flex;flex-direction:column;width:120px">
<button role="tab" aria-selected="true">General</button>
<button role="tab" aria-selected="false" tabindex="-1">Privacy</button>
<button role="tab" aria-selected="false" tabindex="-1">Advanced</button>
</div>

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.

This ARIA attribute is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee