HTML <textarea>属性

❮HTML<textarea>タグ

指定された高さと幅のテキスト領域:

<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>

定義と使用法

このrows属性は、テキスト領域の表示される高さを行で指定します。

注: テキストエリアのサイズは、CSSのheightプロパティとwidthプロパティでも指定できます。


ブラウザのサポート

Attribute
rows Yes Yes Yes Yes Yes

構文

<textarea rows="number">

属性値

Value Description
number Specifies the height of the text area (in lines). Default value is 2

❮HTML<textarea>タグ