HTML Attributes
HTML wrap attribute
Controls textarea submission wrapping. soft is the default and does not add line breaks for visual wrapping; hard can insert line breaks based on cols when submitted. Applicable elements include: <textarea>. Check each element’s value rules.
Formal Syntax & Structure
html syntaxhtml
wrap="hard"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| wrap | enumerated: soft, hard | Controls textarea submission wrapping. soft is the default and does not add line breaks for visual wrapping; hard can insert line breaks based on cols when submitted. |
Working Example
Example Snippethtml
<label>Notes <textarea cols="30" wrap="hard"></textarea></label>