HTML readonly attribute
The presence of readonly attribute makes the text uneditable. The user can only read the text and can not edit.
Attribute values
All possible values of readonly attributereadonly attribute is a boolean attribute.
Related Tags
The tags that support readonly attributeDifference between readonly and disabled attributes
readonly input elements are focusable and the text can be selected. The user can interact with the content of readonly elements. While disabled elements are not focusable.