A RetroSearch Logo

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

Search Query:

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

HTML | <select> autocomplete Attribute

HTML | <select> autocomplete Attribute

Last Updated : 24 Apr, 2020

The

HTML <select> autocomplete attribute

is used to specify that the form has autocompleted 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.

Syntax:
<select autocomplete="on | off"> 
Attribute Values: Example: html
<!DOCTYPE html>
<html>

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

<body style="text-align:center">

    <h1 style="color: green;">
        GeeksforGeeks
    </h1>
    
    <h2>
        HTML select autocomplete Attribute
    </h2>
    
    <select autocomplete="on">
        <option value="binary">
            Binary Search
        </option>
        <option value="linear">
            Linear Search
        </option>
        <option value="interpolation">
            Interpolation Search
        </option>
    </select>
</body>

</html>
Output: Supported Browsers:

The browsers supported by

HTML <select> 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