Latest web development tutorials

HTML attribut textarea autofocus

HTML textarea Manuel tag de référence HTML balise <textarea>

Exemples

Une zone de texte auto-centré:

<textarea autofocus>
在 w3big.com 你将学会如何制作网站。我们提供了最全的web技术教程。
</textarea>

Essayez »

support du navigateur

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Opera, Chrome et Safari soutien attribut autofocus.

Remarque: Les versions d'attributs de mise au point automatique de soutien Internet Explorer <textarea> 9 et avant la balise.


Définition et utilisation

attribut autofocus est un attribut booléen.

attribut autofocus spécifie la zone de texte devrait automatiquement se concentrer quand la page se charge.


Différences entre HTML 4.01 et HTML5

attributs de mise au point automatique sont de nouveaux attributs dans HTML5 <textarea>.


Différences entre HTML et XHTML

En XHTML, interdire l'attribut minimisation, attribut autofocus doit être défini comme <textarea autofocus = "autofocus">.


grammaire

<textarea autofocus>


HTML textarea Manuel tag de référence HTML balise <textarea>