ARIA States & Properties
aria-readonly
Indicates that a value cannot be edited but can generally still be read or interacted with. It does not prevent editing itself; use native readonly on supported text controls or enforce read-only behavior in a custom widget. Value type: boolean. Accepted values: true, false. Default or omitted behavior: false. Applicable context: supported input and grid roles; native example. The example intentionally uses a native HTML equivalent. 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-readonly="value" (replace value with a valid value; example uses preferred alternative)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-readonly | boolean | Accepted values: true, false. Default or omitted behavior: false. Context: supported input and grid roles; native example. Requiredness depends on the role. |
Working Example
Example Snippethtml
<label for="id">Account ID</label><input id="id" value="A102" readonly>