سمة HTML <textarea> cols
مثال
منطقة نص بارتفاع وعرض محددين:
<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>
التعريف والاستخدام
تحدد السمة cols
العرض المرئي لمنطقة النص.
تلميح: يمكن أيضًا تعيين حجم منطقة النص بواسطة خصائص ارتفاع وعرض CSS.
دعم المتصفح
Attribute | |||||
---|---|---|---|---|---|
cols | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
<textarea cols="number">
قيم السمات
Value | Description |
---|---|
number | Specifies the width of the text area (in average character width). Default value is 20 |
❮ علامة HTML <textarea>