HTML <textarea> baris Atribut

tag HTML <textarea>

Contoh

Area teks dengan tinggi dan lebar tertentu:

<textarea rows="4" cols="50">
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>

Definisi dan Penggunaan

Atribut rowsmenentukan ketinggian yang terlihat dari area teks, dalam baris.

Catatan: Ukuran textarea juga dapat ditentukan oleh properti tinggi dan lebar CSS.


Dukungan Peramban

Attribute
rows Yes Yes Yes Yes Yes

Sintaksis

<textarea rows="number">

Nilai Atribut

Value Description
number Specifies the height of the text area (in lines). Default value is 2

tag HTML <textarea>