The text in a text area with wrap="hard" will contain newlines (if any) when submitted in a form:
The wrap attribute specifies how the text in a text area is to be wrapped when submitted in a form.
Attribute | |||||
---|---|---|---|---|---|
wrap | Yes | Yes | Yes | Yes | Yes |
The wrap attribute is new for the <textarea> tag in HTML5.
Value | Description |
---|---|
soft | The text in the textarea is not wrapped when submitted in a form. This is default |
hard | The text in the textarea is wrapped (contains newlines) when submitted in a form. When "hard" is used, the cols attribute must be specified |