Wrap
API reference › HTML › Form › Values › Wrap
Represents values for the HTML wrap attribute.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/textarea#wrap.
| Case | Value | Description |
|---|---|---|
HARD | 'hard' | Represents the hard token. The browser automatically inserts line breaks (CR+LF) so no line exceeds the width of the control. The cols attribute must be specified. |
OFF | 'off' | Represents the off token. Like soft, but changes appearance to white-space: pre so line segments exceeding cols are not wrapped. Non-standard. |
SOFT | 'soft' | Represents the soft token. The browser ensures all line breaks in the value are CR+LF pairs, but no additional line breaks are added. This is the default. |