HTML <textarea> bungkus Atribut

tag HTML <textarea>

Contoh

Teks di area teks dengan wrap="hard" akan berisi baris baru (jika ada) saat dikirimkan dalam formulir:

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

Definisi dan Penggunaan

Atribut wrapmenentukan bagaimana teks di area teks akan dibungkus saat dikirimkan dalam formulir.


Dukungan Peramban

Attribute
wrap Yes Yes Yes Yes Yes

Sintaksis

<textarea wrap="soft|hard">

Nilai 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

tag HTML <textarea>