Easy Tutorial
❮ Av Met Pause Tag Dialog ❯

HTML <textarea> disabled Attribute

HTML <textarea> Tag

Example

A disabled text area:


Browser Support

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.

A disabled text area is unusable and un-selectable (cannot be copied).

The disabled attribute can be set until some conditions are met (such as selecting a checkbox), and then the text area can be enabled. JavaScript can be used to remove the disabled attribute value to make the text area enabled.


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


❮ Av Met Pause Tag Dialog ❯