A text area with autofocus:
![]()
The autofocus attribute is supported in Internet Explorer 10, Firefox, Opera, Chrome, and Safari.
Note: The autofocus attribute of the <textarea> tag is not supported in Internet Explorer 9 and earlier versions.
The autofocus attribute is a boolean attribute.
When present, it specifies that the text area should automatically get focus when the page loads.
The autofocus attribute is new for the <textarea> tag in HTML5.
In XHTML, attribute minimization is forbidden, and the autofocus attribute must be defined as <textarea autofocus="autofocus">.
HTML <textarea> tag
Your message has been sent to W3Schools.