HTML
Example
A disabled text area:
Try it »
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 neither usable, nor can its text be selected (it cannot be copied).
You can set the disabled attribute until certain conditions are met (such as selecting a checkbox), then restore the user's use of the text area. Then, you can use JavaScript to remove the value of the disabled attribute to make the text area available again.
Differences between HTML 4.01 and HTML5
none.
Differences between HTML and XHTML
In XHTML, attribute minimization is forbidden; the disabled attribute must be defined as
Syntax
HTML