Favorites

HTML aria-posinset ARIA Attribute

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

The aria-posinset attribute gives an item's position in a set, such as 3 in 3 of 10, when not all items in the set are present in the DOM.

☕
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-posinset attribute defines an item's position in its set of items, starting at 1. Screen readers combine it with aria-setsize to announce something like "Option 3 of 50".

Browsers work out positions automatically when all items are in the DOM, so the attribute is only needed when some items are missing, for example in a long list that loads items as the user scrolls, or in a feed. When using it, set it on every item, together with aria-setsize.

Properties

Type
Widget
Value
integer
Default
None
Used with
article, comment, listitem, menuitem, menuitemcheckbox, menuitemradio, option, radio, row, tab, treeitem

Syntax

<element aria-posinset="number" aria-setsize="number">

Values

  • integerThe position of the item in the set, starting at 1.

Example

<ul role="listbox" aria-label="Results">
<li role="option" aria-posinset="21" aria-setsize="100">Result 21</li>
<li role="option" aria-posinset="22" aria-setsize="100">Result 22</li>
<li role="option" aria-posinset="23" aria-setsize="100">Result 23</li>
</ul>

Browser Support

The following information will show you the current browser support for the aria-posinset 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