HTML <textarea> wrap atribut
Příklad
Text v textové oblasti s wrap="hard" bude obsahovat nové řádky (pokud existují), když je odeslán ve formuláři:
<textarea rows="2" cols="20" wrap="hard">
At W3Schools you will find free Web-building tutorials.
</textarea>
Definice a použití
Atribut wrap
určuje, jak se má text v textové oblasti zalomit při odeslání ve formuláři.
Podpora prohlížeče
Attribute | |||||
---|---|---|---|---|---|
wrap | Yes | Yes | Yes | Yes | Yes |
Syntax
<textarea wrap="soft|hard">
Hodnoty atributů
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 |
❮ HTML tag <textarea>