HTML aria-setsize ARIA Attribute
The aria-setsize attribute gives the total number of items in a set, such as 10 in 3 of 10, when not all items are present in the DOM.
Description
The aria-setsize attribute defines the number of items in the current set of list items, options, tabs, tree items or similar. Together with aria-posinset, it lets screen readers announce positions such as "item 3 of 10" when only some of the items are loaded.
Set it on each item in the set, not on the container. Use -1 when the total is unknown, for example in an infinitely scrolling feed. When all items are in the DOM, browsers count them automatically and the attribute isn't needed.
Properties
Syntax
<element aria-setsize="number" aria-posinset="number">
Values
- integerThe number of items in the set, or -1 if unknown.
Example
Browser Support
The following information will show you the current browser support for the aria-setsize ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





