HTML <textarea>オートフォーカス属性

❮HTML<textarea>タグ

オートフォーカス付きのテキスト領域:

<textarea autofocus>
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>

定義と使用法

autofocus属性はブール属性です

存在する場合、ページの読み込み時にテキスト領域が自動的にフォーカスを取得するように指定します。


ブラウザのサポート

表の数字は、属性を完全にサポートする最初のブラウザーバージョンを示しています。

Attribute
autofocus Yes 10.0 4.0 Yes Yes

構文

<textarea autofocus>

❮HTML<textarea>タグ