HTML <textarea> readonly Attribute
A read-only text area:
Try it Yourself »
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
Definition and Usage
readonly attribute is a boolean attribute.
When present, it specifies that a text area should be read-only.
In a read-only text area, the content cannot be changed, but a user can tab to it, highlight it and copy content from it.
readonly attribute can be set to keep a user from using a text area until
some other condition has been met (like selecting a checkbox, etc.). Then, a
❮ HTML <textarea> tag