Atrybut zawijania HTML <textarea>

❮ Znacznik HTML <textarea>

Przykład

Tekst w obszarze tekstowym z wrap="hard" będzie zawierał znaki nowej linii (jeśli istnieją) po przesłaniu w formularzu:

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

Definicja i użycie

wrapAtrybut określa sposób zawinięcia tekstu w obszarze tekstowym po przesłaniu w formularzu .


Obsługa przeglądarki

Attribute
wrap Yes Yes Yes Yes Yes

Składnia

<textarea wrap="soft|hard">

Wartości atrybutów

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

❮ Znacznik HTML <textarea>