English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete list of HTML tags

HTML: <textarea> disabled attribute

<textarea> The Disabled attribute is a boolean attribute. The Disabled attribute specifies that the text area should be disabled. A disabled text area is not available and the text cannot be selected (cannot be copied).

 HTML <textarea> tag

Online example

A disabled textarea text area box:

<textarea disabled>
At oldtoolbag.com will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>
Test See ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the disabled attribute.

Definition and Usage

The Disabled attribute is a boolean attribute.

The Disabled attribute specifies that the text area should be disabled.

Disabled text area is not available, and the text cannot be selected (cannot be copied).

Can set the Disabled attribute to make the text area unavailable to the user until certain other conditions are met (such as checking a checkbox, etc.). Then, JavaScript can remove the disabled value and make the text area available.

HTML 4.01 With HTML5Differences

None.

Differences between HTML and XHTML

In XHTML, attribute abbreviations are prohibited, and the disabled attribute must be defined as <textarea disabled="disabled">.

Syntax

<textarea disabled>
 HTML <textarea> tag