25.02.2013 Views

Peter Lubbers - Pro HTML 5 Programming

Pro HTML 5 Programming

Pro HTML 5 Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

186<br />

CHAPTER 7 ■ USING THE <strong>HTML</strong>5 FORMS API<br />

As always, the source code for the demo files we show here is available in the code/forms folder.<br />

Therefore, we’ll spend less attention on the CSS and peripheral markup, and more on the core of the<br />

page itself. That being said, let’s start with a look at the finished page shown in Figure 7-4, then break it<br />

down into sections to tackle one-by-one.<br />

Figure 7-4. Example page with race signup form<br />

This signup page demonstrates many of the elements and APIs we’ve explored in this chapter,<br />

including validation. Although the actual display may look somewhat different on your browser, it<br />

should degrade gracefully even if the browser does not support a particular feature.<br />

On to the code!<br />

The header, navigation, and footer have all been seen before on our previous examples. The page<br />

now contains a element.<br />

<br />

Runner:<br />

<br />

Tel #:<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!