سمة التفاف <textarea> HTML
مثال
سيحتوي النص الموجود في منطقة النص مع التفاف = "صعب" على أسطر جديدة (إن وجدت) عند إرسالها في نموذج:
<textarea rows="2" cols="20" wrap="hard">
At W3Schools you will find free Web-building tutorials.
</textarea>
التعريف والاستخدام
تحدد السمة wrap
كيفية التفاف النص في منطقة النص عند إرسالها في نموذج.
دعم المتصفح
Attribute | |||||
---|---|---|---|---|---|
wrap | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
<textarea wrap="soft|hard">
قيم السمات
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 <textarea>