Favorites

ARIA separator Role

separator
ARIA Widget RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

The separator role marks a divider between sections of content or groups of menu items. When focusable, it becomes a widget the user can drag to resize panes.

☕
Enjoying this site?

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

Buy us a coffee

Description

The separator role identifies a divider that separates and distinguishes sections of content or groups of items, such as the line between groups in a menu or toolbar. The <hr> element has this role. A static separator is not interactive and its contents are not exposed.

A separator can also be a focusable widget: the draggable splitter between two panes, for example in a code editor. In that case it needs tabindex="0", an accessible name, and aria-valuenow (with aria-valuemin and aria-valuemax) giving the position, and the arrow keys should move it. The default orientation is horizontal; a splitter between side-by-side panes is vertical.

Use the native HTML <hr> element where you can: it already has the separator role, with the expected keyboard and browser behavior built in.

Properties

Category
Widget
HTML equivalent
<hr>
Accessible name from
author
Required parent role
None
Required child roles
None

ARIA Attributes

Syntax

<element role="separator">

Example

<ul role="menu" aria-label="File" style="list-style:none;padding:0;width:140px">
<li role="menuitem">New</li>
<li role="menuitem">Open</li>
<li role="separator" style="border-top:1px solid #ccc;margin:4px 0"></li>
<li role="menuitem">Exit</li>
</ul>

Browser Support

The following information will show you the current browser support for the separator ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.

This ARIA role 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