Favorites

HTML aria-setsize ARIA Attribute

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

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.

☕
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-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

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

Syntax

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

Values

  • integerThe number of items in the set, or -1 if unknown.

Example

<div role="feed" aria-label="Posts" aria-busy="false">
<article aria-posinset="1" aria-setsize="-1" aria-labelledby="p1"><h3 id="p1">First post</h3></article>
<article aria-posinset="2" aria-setsize="-1" aria-labelledby="p2"><h3 id="p2">Second post</h3></article>
</div>

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.

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