A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-textarea-autocomplete-attribute/ below:

HTML <textarea> autocomplete Attribute - GeeksforGeeks

HTML <textarea> autocomplete Attribute

Last Updated : 18 Apr, 2025

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.
Syntax: 

<Textarea autocomplete="on | off">

Attribute Values: 

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

html
<!DOCTYPE html>
<html>

<head>
    <title>
        HTML textarea autocomplete Attribute
    </title>
</head>

<body style="text-align:center">
    <h1 style="color: green;">
        GeeksforGeeks
    </h1>
    <h2>
        HTML Textarea
        autocomplete Attribute
    </h2>

    <textarea id="geeks" autocomplete="on"
        autofocus>
        write something here----
    </textarea>
</body>

</html>

Output: 

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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4