Dynamic Web Lab
Back to insights

HTML5 Autocomplete Attribute

September 17, 20121 min read

When HTML5 autocomplete is on, the browser will automatically complete values that the user has entered before.
This HTML5 autocomplete attribute works with the following input types: text, search, url, tel, email, password, datepickers, range, and color.

Also you can turn off this autocomplete attribute by using this attribute autocomplete="off"

[php]
<form action="/" autocomplete="on">
First name:<input type="text" name="f_name" />
E-mail: <input type="email" name="email" autocomplete="off" />
<input type="submit" />
</form>
[/php]

On this above HTML form autocomplete on and autocomplete is off for email input field.

Writer

Dynamic Web Lab Editorial

We share how we design, engineer, and scale digital products across the GCC, Europe, and the US.

Share this article

Tags

HTML5

Need help implementing this?

We turn these playbooks into shipped features. Let us scope your roadmap and support your team.

Start a project conversation