revision:
It specifies whether a form or an input field should have autocomplete on or off.
When a user starts to type in a field, the browser should display options to fill in the field, based on earlier typed values.
It is possible to have autocomplete "on" for the form, and "off" for specific input fields, or vice versa.
The autocomplete attribute works with the following <input> types: text, search, url, tel, email, password, datepickers, range, and color.
<input autocomplete="on|off">
When autocomplete is on, the browser provides input values based on previous values the user has entered. This attribute is available on any element that accepts user input that is either numeric or text. These elements accept the autocomplete attribute: <textarea>, <select>, <input>, <form>.
Fill in and submit the form, then reload the page to see how autocomplete works.
Notice that autocomplete is "on" for the form, but "off" for the e-mail field!
<form class="spec" style="margin-left:5vw;" action="/action_page.php" autocomplete="on"> <label for="fname">First name:</label> <input type="text" id="fname" name="fname"><br>> <label for="lname">Last name:</label> <input type="text" id="lname" name="lname"><br> <label for="email">Email:</label> <input type="email" id="email" name="email" autocomplete="off"><br><br> <input type="submit"> </form>
<form style="margin-left:5vw;" action="#" > <textarea autocomplete="on" name="message" placeholder="Enter message" rows="3" cols="60"> </textarea> <br> <button type="submit">Submit</button> </form>