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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <textarea> wrap-Eigenschaft

HTML: <textarea> wrap-Eigenschaft definiert, wie der Text im Textbereich bei der Formularübergabe umgebrochen wird, Online-Beispiel zeigt die Verwendung der <textarea> wrap-Eigenschaft, die Kompatibilität des Browsers, die Syntaxdefinition und detaillierte Informationen zu seinen Eigenschaftswerten.

 HTML <textarea> Tag

Online-Beispiel

Wenn das Formular eingereicht wird, enthält der Textbereich mit wrap = "hard" Zeilenumbrüche (falls vorhanden):

<textarea rows="4" cols="30" wrap="hard">
oldtoolbag.com Basic Tutorial Website provides various basic web technology tutorials. 
</textarea>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the wrap attribute.

Definition and Usage

The wrap attribute specifies how the text in the text area is wrapped when the form is submitted.

HTML 4.01 with HTML5difference

The wrap attribute is an HTML5 The new attribute of the <textarea> tag in HTML.

Syntax

<textarea wrap="soft|hard">

Attribute Value

ValueDescription
softWhen submitting a form, the text in the textarea is not wrapped. Default.
hardWhen submitting a form, the text in the textarea is wrapped (including newline characters). When using "hard", the cols attribute must be specified.
 HTML <textarea> Tag