Forms & Controls

wrap="soft"

Build a form with the HTML form generator

Allows visual wrapping in a textarea without inserting extra line breaks for the visual wraps during submission. User-entered line breaks still remain, with form serialization normalizing line endings. 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="soft"

Parameters & Attributes

NameTypeDescription
wrapkeywordAllows visual wrapping in a textarea without inserting extra line breaks for the visual wraps during submission. User-entered line breaks still remain, with form serialization normalizing line endings.

Working Example

Example Snippethtml
<label>Note <textarea cols="12" rows="4" wrap="soft">This is a longer line of text.</textarea></label>
HTML Reference