Skip to content
Related Articles

Related Articles

Improve Article

HTML | <textarea> autocomplete Attribute

  • Last Updated : 14 May, 2020

The HTML <textarea> autocomplete Attribute is used to specify whether the Textarea field has autocomplete on or off. When the autocomplete attribute is set to on, the browser will automatically complete the values based on which the user entered before. It works with many input fields such as text, search, URL, email, password, date pickers, range, and color.


<Textarea autocomplete="on | off">

Attribute Values:

  • on: It specifies that autocomplete is enabled.
  • off: It specifies that the autocomplete is disabled.

Example: This example illustrates the use of autocomplete attribute in textarea element

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


Supported Browsers: The browsers supported by HTML | <textarea> autcomplete attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :