Attributo HTML <textarea> autofocus

❮ Tag HTML <textarea>

Esempio

Un'area di testo con messa a fuoco automatica:

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

Definizione e utilizzo

L' autofocusattributo è un attributo booleano.

Quando presente, specifica che l'area di testo deve essere automaticamente attivata al caricamento della pagina.


Supporto browser

I numeri nella tabella specificano la prima versione del browser che supporta completamente l'attributo.

Attribute
autofocus Yes 10.0 4.0 Yes Yes

Sintassi

<textarea autofocus>

❮ Tag HTML <textarea>