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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <textarea> disabled-Attribut

<textarea> Das Disabled-Attribut ist ein boolesches Attribut. Das Disabled-Attribut legt fest, dass der Textbereich deaktiviert sein soll. Ein deaktivierter Textbereich ist nicht verfügbar und der Text kann nicht ausgewählt werden (kann nicht kopiert werden).

 HTML <textarea> Tag

Online-Beispiel

Ein deaktivierter textarea-Textbereichsrahmen:

<textarea disabled>
Bei oldtoolbag.com wird lernen, wie man eine Webseite erstellt. Wir bieten kostenlose Tutorials in allen Web-Entwicklungstechnologien an.
</textarea>
Test and 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 areas are not available and the text cannot be selected (cannot be copied).

The Disabled attribute can be set to prevent users from using the text area 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, the disabled attribute must be defined as <textarea disabled="disabled">.

Syntax

<textarea disabled>
 HTML <textarea> Tag