The <form> and <input> tags of HTML5 have added several new properties.
<form>New properties:
autocomplete
novalidate
<input>New property:
autocomplete
autofocus
form
Formaction
Formenctype
Formethod
formnovalidate
formtarget
height and width
list
min and max
multiple
pattern (regexp)
placeholder
required
step
<form> / <input> autocomplete attributeThe autocomplete property specifies that the form or input domain should have automatic completion functions.
When the user starts typing in the AutoComplete field, the browser should display the filled-in options in that field.
Tip: The autocomplete attribute may be enabled in the form element and closed in the input element.
Note: autocomplete is suitable for <form> tags, as well as the following types of <input> tags: text, search, url, telephone, email, password, datepickers, range, and color.
Example
Turn on autocomplete in HTML form (a input field closes autocomplete):
XML/HTML Code Copy content to clipboard