Thuộc tính bọc HTML <textarea>
Ví dụ
Văn bản trong vùng văn bản có quấn="hard" sẽ chứa dòng mới (nếu có) khi được gửi dưới dạng:
<textarea rows="2" cols="20" wrap="hard">
At Example.com.vn you will find free Web-building tutorials.
</textarea>
Hãy tự mình thử »Định nghĩa và cách sử dụng
Thuộc tính wrap
chỉ định cách văn bản trong vùng văn bản sẽ được bọc khi gửi dưới dạng biểu mẫu.
Hỗ trợ trình duyệt
Attribute | |||||
---|---|---|---|---|---|
wrap | Yes | Yes | Yes | Yes | Yes |
Cú pháp
<textarea wrap=" soft|hard ">
Giá trị thuộc tính
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 |
❮ Thẻ HTML <textarea>