HTML5 Forms, Part 1 part 3

HTML5 Forms, Part 1
24
3/3













Forms with Required Fields
The "required" attribute is used to make the input elements required.
The form will not be submitted without filling in the required fields.
Result:
The autocomplete attribute specifies whether a form or input field should have autocomplete turned on or off.
When autocomplete is on, the browser automatically complete values based on values that the user has entered before.
HTML5 added several new input types:
- color
- date
- datetime
- datetime-local
- month
- number
- range
- search
- tel
- time
- url
- week
New input attributes in HTML5:
- autofocus
- form
- formaction
- formenctype
- formmethod
- formnovalidate
- formtarget
- height and width
- list
- min and max
- multiple
- pattern (regexp)
- placeholder
- required
- step
Input types that are not supported by old web browsers, will behave as input type text.
Comments
Post a Comment