rows 属性は、表示するテキストエリアを行で指定します。
注: テキストエリアのサイズは、CSS のS height と width プロパティによっても指定できます。
rows 属性は、以下の要素で使用することができます:
要素 | 属性 |
---|---|
<textarea> | rows |
指定の高さと幅を持つテキストエリア:
<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>
Try it Yourself ❯
属性 | |||||
---|---|---|---|---|---|
rows | Yes | Yes | Yes | Yes | Yes |