English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML: <textarea> wrap attribute specifies how the text in the text area is wrapped when the form is submitted, an online instance demonstrates how to use the <textarea> wrap attribute, browser compatibility, syntax definition, and detailed information about its attribute values, etc.
When the form is submitted, the text area with wrap = 'hard' will include newline characters (if any):
<textarea rows="4" cols="30" wrap="hard"> oldtoolbag.com provides various basic web technology tutorials. </textarea>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the wrap attribute.
The wrap attribute specifies how the text in the text area is wrapped when submitting a form.
The wrap attribute is an HTML5 is a new attribute of the <textarea> tag in HTML.
<textarea wrap="soft|hard">
Value | Description |
---|---|
soft | When submitting a form, the text in the textarea is not wrapped. Default. |
hard | When submitting a form, the text in the textarea is wrapped (including newline characters). When using "hard", the cols attribute must be specified. |