ARIA States & Properties
aria-posinset
Identifies an item's logical position when not all items in a set are present in the DOM. Pair with aria-setsize and ensure the position does not exceed a known size. Value type: integer. Accepted values: positive 1-based position. Default or omitted behavior: inferred from available set. Applicable context: listitem, option, radio, treeitem, article and other supported set members. 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-posinset="4"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-posinset | integer | Accepted values: positive 1-based position. Default or omitted behavior: inferred from available set. Context: listitem, option, radio, treeitem, article and other supported set members. Requiredness depends on the role. |
Working Example
Example Snippethtml
<div role="list" aria-label="Tasks"> <div role="listitem" aria-posinset="4" aria-setsize="10">Review</div></div>