HTML <textarea> avvolge l' attributo

❮ Tag HTML <textarea>

Esempio

Il testo in un'area di testo con wrap="hard" conterrà nuove righe (se presenti) quando inviato in un modulo:

<textarea rows="2" cols="20" wrap="hard">
At W3Schools you will find free Web-building tutorials.
</textarea>

Definizione e utilizzo

L' wrapattributo specifica come il testo in un'area di testo deve essere avvolto quando inviato in un modulo.


Supporto browser

Attribute
wrap Yes Yes Yes Yes Yes

Sintassi

<textarea wrap="soft|hard">

Valori di attributo

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

❮ Tag HTML <textarea>