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

NameTypeDescription
wrapkeywordAllows 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.
colspositive integerSpecifies 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>
HTML Reference