HTML <textarea> kaydırma Özelliği
Örnek
Wrap="hard" içeren bir metin alanındaki metin, bir formda gönderildiğinde (varsa) yeni satırlar içerecektir:
<textarea rows="2" cols="20" wrap="hard">
At W3Schools you will find free Web-building tutorials.
</textarea>
Tanım ve Kullanım
Nitelik wrap
, bir formda gönderildiğinde metin alanındaki metnin nasıl kaydırılacağını belirtir.
Tarayıcı Desteği
Attribute | |||||
---|---|---|---|---|---|
wrap | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
<textarea wrap="soft|hard">
Özellik Değerleri
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> etiketi