Summary

Well, that wraps up the chapter on forms. We learned how to use the new HTML5 form elements properly to create a form that functions perfectly and is accessible to boot. We learned how to focus the first field in the form, use placeholder text in all browsers, validate our site visitor's form input and style those stubborn and notoriously unstyleable form elements. Now you've got an arsenal of tools on your side to create gorgeous-looking forms that enhance your site visitors' experience on your site. And best of all, they all degrade gracefully for users with JavaScript disabled since we approached our forms with the progressive enhancement mindset—first building out a working form, then layering in enhancements for those site visitors ...

Get jQuery for Designers Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.