readonly attribute of input and textarea elements

Makes the form control non-editable. Unlike the `disabled` attribute, `readonly` form controls are still included in form submissions and the user can still select (but not edit) their value text.

WHATWG Living Standard: https://html.spec.whatwg.org/multipage/input.html#the-readonly-attribute

Usage: 98.4% + 0% = 98.4%

Support summary

Notes

  1. Readonly inputs of type `datetime-local`, `date`, `month`, and `week` can still be edited by pressing the Up or Down arrow keys on the keyboard while the input is focused.
  2. Text cannot be selected directly, but is possible by first selecting any text around the field.

Links