html stop browser autocomplete code example

Example 1: turn off autocomplete input html

<form method="post" action="/post/" autocomplete="off">
	<!-- The entire form has autocomplete disabled. -->
</form>

<!-- or you turn it off for just one input -->
<input type="text" autocomplete="off">

Example 2: disable browser autocomplete

<form method="post" action="/form" autocomplete="off">
[…]
</form>

Example 3: input without autocomplete

<input type="text" name="foo" autocomplete="off" />

Tags:

Html Example