Forms & Controls
wrap="hard"
Allows additional line breaks to be inserted in the submitted textarea value according to its wrapping width. Specify cols; the browser chooses wrapping details, so do not depend on exact line breaks across engines. On textarea; missing or invalid defaults to soft. This concerns submission, not merely CSS white-space or visual wrapping.
Formal Syntax & Structure
html syntaxhtml
wrap="hard"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| wrap | keyword | Allows additional line breaks to be inserted in the submitted textarea value according to its wrapping width. Specify cols; the browser chooses wrapping details, so do not depend on exact line breaks across engines. |
| cols | positive integer | Specifies the textarea width for hard wrapping. |
Working Example
Example Snippethtml
<label>Note <textarea cols="12" rows="4" wrap="hard">This is a longer line of text.</textarea></label>