HTML aria-readonly ARIA Attribute
The aria-readonly attribute tells assistive technology that a custom control's value can be read and focused but not changed by the user.
Description
The aria-readonly attribute marks an element as read-only: users can focus it, read it and often select and copy its content, but can't change its value. Screen readers announce it, for example "Order number, edit text, read only".
The difference from aria-disabled is that a read-only control is still fully part of the page and its value is still relevant. A disabled control is unavailable. The attribute does not block changes itself, so your script has to ignore input on a read-only custom control.
Native text fields should use the HTML readonly attribute, which handles everything. In a grid, the attribute can be set on the whole grid or on individual cells.
Properties
- Type
- Widget
- Value
- true/false
- Default
false- Used with
checkbox,combobox,grid,gridcell,listbox,radiogroup,slider,spinbutton,textbox
Syntax
<element aria-readonly="true | false">
Values
- trueThe user can't change the value.
- falseThe default: the user can change the value.
Example
Browser Support
The following information will show you the current browser support for the aria-readonly ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





