HTML aria-posinset ARIA Attribute
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.
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
Syntax
<element aria-posinset="number" aria-setsize="number">
Values
- integerThe position of the item in the set, starting at 1.
Example
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.
Desktop





Tablets & Mobile





