Skip to main content
HTML Validation

Bad value “false” for attribute “autocomplete” on element “form”.

About This HTML Issue

The autocomplete attribute on a <form> element only accepts "on" or "off" as valid values — "false" is not a recognized keyword.

The autocomplete attribute controls whether the browser can automatically fill in form fields based on previously entered values. When set on a <form> element, it applies as the default behavior for all fields within that form. The valid values are "on" (the browser may auto-complete entries) and "off" (the browser should not auto-complete entries).

It’s a common mistake to use "true" or "false" since many other attributes and programming languages use boolean-style values. However, the HTML specification explicitly defines only "on" and "off" for the <form> element’s autocomplete attribute.

Note that individual <input> elements support a much wider range of autocomplete values (like "name", "email", "street-address", etc.), but these extended values do not apply to the <form> element itself.

Invalid Example

<form autocomplete="false" action="/submit" method="post">
  <label for="email">Email</label>
  <input type="email" id="email" name="email">
  <button type="submit">Submit</button>
</form>

Valid Example

<form autocomplete="off" action="/submit" method="post">
  <label for="email">Email</label>
  <input type="email" id="email" name="email">
  <button type="submit">Submit</button>
</form>

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Help us improve our guides

Was this guide helpful?
🌍 Trusted by teams worldwide

Validate at scale.
Ship accessible websites, faster.

Automated HTML & accessibility validation for large sites. Check thousands of pages against WCAG guidelines and W3C standards in minutes, not days.

Scheduled Reports
API Access
Open Source Standards
$7 / 7 days

Pro Trial

Full Pro access. Cancel anytime.

Start Pro Trial →

Join teams across 40+ countries