HTML <textarea> readonly Attribute
A read-only text area:
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
Try it yourself »
Definition and Usage
The 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.
Differences Between HTML 4.01 and HTML5
Differences Between HTML and XHTML
In XHTML, attribute minimization is forbidden, and the readonly attribute must be defined as <textarea readonly="readonly">.
HTML <textarea> tag
Thank You For Helping Us!
Your message has been sent to W3Schools.