X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <textarea> disabled Attribute

HTML textarea Tag Reference HTML <textarea> tag

Example

A disabled text area:

<textarea disabled>
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The disabled attribute is supported in all major browsers.


Definition and Usage

The disabled attribute is a boolean attribute.

When present, it specifies that the text area should be disabled.

A disabled text area is unusable and the text is not selectable (cannot be copied).

The disabled attribute can be set to keep a user from using the text area until some other condition has been met (like selecting a checkbox, etc.). Then, a JavaScript could remove the disabled value, and make the text area usable.


Differences Between HTML 4.01 and HTML5

NONE.


Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the disabled attribute must be defined as <textarea disabled="disabled">.


Syntax

<textarea disabled>


HTML textarea Tag Reference HTML <textarea> tag

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook