HTML Atribut autofocus <textarea>
Příklad
Textová oblast s automatickým ostřením:
<textarea autofocus>
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>
Definice a použití
Atribut autofocus
je booleovský atribut.
Pokud je přítomen, určuje, že textová oblast by se měla automaticky aktivovat při načítání stránky.
Podpora prohlížeče
Čísla v tabulce určují první verzi prohlížeče, která tento atribut plně podporuje.
Attribute | |||||
---|---|---|---|---|---|
autofocus | Yes | 10.0 | 4.0 | Yes | Yes |
Syntax
<textarea autofocus>
❮ HTML tag <textarea>