ARIA States & Properties
aria-setsize
Indicates the total number of items in a logical set when only some appear in the DOM. Use -1 for unknown size. Pair with aria-posinset for each rendered member. Value type: integer. Accepted values: positive integer or -1. Default or omitted behavior: inferred from available set. Applicable context: supported set members such as listitem, option, treeitem. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.
Formal Syntax & Structure
html syntaxhtml
aria-setsize="25"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-setsize | integer | Accepted values: positive integer or -1. Default or omitted behavior: inferred from available set. Context: supported set members such as listitem, option, treeitem. Requiredness depends on the role. |
Working Example
Example Snippethtml
<div role="list" aria-label="Results"> <div role="listitem" aria-setsize="25" aria-posinset="10">Result ten</div></div>