Favorites

HTML aria-readonly ARIA Attribute

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

The aria-readonly attribute tells assistive technology that a custom control's value can be read and focused but not changed by the user.

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

<div id="lbl">Order number</div>
<div role="textbox" aria-readonly="true" aria-labelledby="lbl" tabindex="0"
style="border:1px solid #ccc;background:#f5f5f5;padding:4px;width:160px">A-10482</div>

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.

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