Skip to content
Related Articles

Related Articles

Improve Article
HTML | <textarea> autofocus Attribute
  • Last Updated : 29 Apr, 2019

The HTML <textarea> autofocus Attribute is used to specify that the textarea field should get automatically focus when the page loads. It is a Boolean Attribute.


<textarea autofocus>

Example: This Example illustrates the use of autofocus attribute in Textarea Element.

<!DOCTYPE html>
      HTML textarea autofocus Attribute
<body style="text-align:center">
    <h1 style="color: green;">
      HTML <Textarea
      autofocus Attribute
        <textarea id="geeks"
          write something here----


Supported Browsers: The browser supported by HTML | <Textarea>autofocus Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
My Personal Notes arrow_drop_up
Recommended Articles
Page :