Validating javascript text fields

Please send corrections and suggested improvements to [email protected] As of January 2013, Opera had the most complete support for these new input elements, followed closely by Chrome.Firefox and Safari had moderate support, and Internet Explorer had no support at all.

At the end, there's a little exercise to keep you busy too!

HTML5 defines a variety of new input types: sliders, number spinners, popup calendars, color choosers, autocompleting suggest boxes, and more.

The beauty of these elements is that you can use them now: for browsers that don't support a particular input type, there is automatic fallback to standard textfields.

Currently, if you leave the captcha empty and submit the form, the field will be masked as invalid.

While HTML5 form validation is typically about missing or invalid text inputs, there are other form element types that also require attention. Suppose you have a form on your website that at the bottom asks people to "accept the Terms and Conditions" or something similar.