autocomplete attribute test

Index page

The autocomplete attribute specifies whether a form or an input field should have autocomplete on or off. Autocomplete allows the browser to predict the value. When a user starts to type in a field, the browser should display options to fill in the field, based on earlier typed values.

This test is to determine whether the autocomplete values are announced with each field.


Example 01: autocomplete="name"

Code

<form action="#">
  <div class="form-container">
    <label for="form-name">Name</label>
    <input id="form-name" type="text" autocomplete="name">
  </div>
</form>

Dummy link after


Example 02: autocomplete="email"

Code

<form action="#">
  <div class="form-container">
    <label for="form-email">Email</label>
    <input id="form-email" type="text" autocomplete="email">
  </div>
</form>

Dummy link after


Example 03 - autocomplete="country"

Dummy link after


Resources

Index page