HTML rows 属性

前へ 全ての HTML 属性 次へ

定義と用法

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

前へ 全ての HTML 属性 次へ