0% found this document useful (0 votes)
83 views4 pages

HTML 5 Forms

HTML 5 introduces several new form input types that are more appropriate for collecting specific types of user input like numbers, emails, dates and times. Some of the new input types include number, email, date, and time. This is an improvement over HTML 4 which only had generic text inputs. HTML 5 also allows values to be pre-filled into read-only form fields and to associate values with forms without using JavaScript. Additionally, HTML 5 enables automatic client-side form validation for improved user experiences.

Uploaded by

tiik27
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views4 pages

HTML 5 Forms

HTML 5 introduces several new form input types that are more appropriate for collecting specific types of user input like numbers, emails, dates and times. Some of the new input types include number, email, date, and time. This is an improvement over HTML 4 which only had generic text inputs. HTML 5 also allows values to be pre-filled into read-only form fields and to associate values with forms without using JavaScript. Additionally, HTML 5 enables automatic client-side form validation for improved user experiences.

Uploaded by

tiik27
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

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

You might also like