HTML 5 FORMS
By:
Atikah Karimah 145060700111041
Karima 145060700111
New Input Types in HTML 5
But the HTML4 forms solution requires a number of compromises. It uses text inputs
for purposes such as numbers and email addresses. For the rest of this chapter,
youll learn about the new form controls provided by HTML5, which are more
appropriate for such input.
HTML5 introduces several new form controls that didnt exist in HTML4; they give
you more precise control over how you gather user input. In HTML4, all text inputs
were just that: text. HTML5 significantly expands the range of controls available,
not least by providing two ways of entering numbers and multiple controls for dates
and times.
In HTML4, you could use JavaScript to insert the value into a read-only field, or you
might have written the value into the HTML content, but there was no way to
indicate that the field or the value had any sort of relationship to the form values or
even was part of the form at all.
HTML 5 Forms Features for
Improved User Experiences
Automatic Client-Side From
Validation