Latest web development tutorials

HTML textarea disabled property

HTML textarea tag Reference Manual HTML <textarea> tag

Examples

A disabled text area:

<textarea disabled>
在 w3big.com 你将学会如何制作网站。我们提供了最全的 web 技术教程。
</textarea>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the disabled attribute.


Definition and Usage

disabled attribute is a Boolean attribute.

disabled attribute specifies the text area should be disabled.

Disabled text area neither is available, the text is not selectable (can not be copied).

You can set the disabled property until certain conditions are met (such as selecting a check box), before resuming the use of users of the text area. You can then use JavaScript to remove the value of the disabled attribute so that the text area becomes available.


Differences between HTML 4.01 and HTML5

no.


Differences between HTML and XHTML

In XHTML, prohibit attribute minimization, disabled attribute must be defined as <textarea disabled = "disabled">.


grammar

<textarea disabled>


HTML textarea tag Reference Manual HTML <textarea> tag