Where does the data from the drop-down box come from?

<html>
    <body>
        <form action="4-7.php" method="get">
            :
            <input type="text" name="userName" size="12">
            :
            <input type="text" name="pass" size="12">
            <input type="submit" value="">
        </form>
    </body>
</html>

the very simple web page above, open
127.0.0.1 move 4-7.php

in the browser.

A drop-down box appears when the mouse clicks on the user name. Excuse me, how did the data in this drop-down box come from?

Apr.07,2021

< form > autocomplete attribute learn

The
definition and usage
autocomplete attribute specifies whether the form should enable autocomplete.
autocompletion allows browsers to predict input to fields. When the user starts typing in the field, the browser should display the options filled in the field based on the values previously typed.

attribute value
on defaults. Specifies that the autocomplete feature is enabled.
off disables autocomplete.


the browser saves the input record

Menu