HTML Checking for Large Sites
Rocket Validator automatically checks your pages on the W3C Validator.
Bad value “nope” for attribute “autocomplete” on element “input”: The string “nope” is not a valid autofill field name.
The correct way to disable autocomplete
is using the value off
.
Example:
<input type="text" name="firstName" id="firstName" required autocomplete="off" />
Learn more:
Related W3C validator issues
The autocomplete
attribute is not valid on input types that do not return numeric or text data, being valid for all input types except checkbox
, radio
, file
, or any of the button
types.
Learn more:
The value company
is not a valid option for the autocomplete
attribute on an <input>
element. You may use the organization
value instead, as it can be used for “company name corresponding to the person, address, or contact information in the other fields associated with this field”.
Learn more:
The value contact
is not a valid option for the autocomplete
attribute on an <input>
element.
Learn more:
The correct way to disable autocomplete
is using the value off
.
Example:
<form autocomplete="off">
Learn more:
The value street-address
cannot be used for attribute autocomplete
on an <input>
element. As this kind of autofill is oriented for multi-line inputs (as in the expected format for addresses), consider using a <textarea>
element instead, like in this example:
<textarea name="address" autocomplete="street-address"></textarea>
Read more about the autocomplete attribute.
The value tel-national
cannot be used on the attribute autocomplete
of an <input>
element of type tel
. Either change to type="text"
, or use autocomplete="tel"
. Examples:
<!-- Using autocomplete "tel-national" on type "tel" is invalid -->
<input name="phone1" type="tel" autocomplete="tel-national" />
<!--Using autocomplete "tel-national" on type "text" is valid -->
<input name="phone2" type="text" autocomplete="tel-national" />
<!--Using autocomplete "tel" on type "tel" is valid -->
<input name="phone3" type="tel" autocomplete="tel" />
Read more about the autocomplete attribute.
25,000 HTML checks per month. Is that enough for your site?
Save time using our automated web checker. Let our crawler check your web pages on the W3C Validator.