Chapter 12. Improving Forms

If you've ever tried to work with web forms, you know what a headache they can be. Luckily, the authors of HTML5 are working hard to make sure that experience improves. We're all waiting patiently for browsers to support those nice new features, but in the meantime we have to build sites and turn out beautiful functioning forms.

In this chapter, you'll learn the following topics:

  • Marking up a form with some of the new HTML5 attributes
  • Placing the cursor in the first form field
  • Using placeholder text in form fields
  • Validating your site visitors' form entries
  • Styling stubborn form elements such as file uploads and select drop downs

An HTML5 web form

We'll get started by taking advantage of some of the new attributes made available ...

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.