HTML <textarea> แถวแอตทริบิวต์
ตัวอย่าง
พื้นที่ข้อความที่มีความสูงและความกว้างที่ระบุ:
<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>
ความหมายและการใช้งาน
แอตทริบิวต์rows
ระบุความสูงที่มองเห็นได้ของพื้นที่ข้อความในบรรทัด
หมายเหตุ: ขนาดของพื้นที่ข้อความสามารถระบุได้ด้วยคุณสมบัติความสูงและความกว้างของ CSS
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
rows | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
<textarea rows="number">
ค่าแอตทริบิวต์
Value | Description |
---|---|
number | Specifies the height of the text area (in lines). Default value is 2 |
❮ แท็ก HTML <textarea>