Building the User Interface by Using HTML5: Organization ... - server
Building the User Interface by Using HTML5: Organization ... - server
Building the User Interface by Using HTML5: Organization ... - server
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Building</strong> <strong>the</strong> <strong>User</strong> <strong>Interface</strong> <strong>by</strong> <strong>Using</strong> <strong>HTML5</strong>: <strong>Organization</strong>, Input, and Validation | 81<br />
Figure 3-21<br />
A Web form using tags to<br />
align fields vertically<br />
LICENSED PRODUCT NOT FOR RESALE<br />
4. Add placeholder text to all fields. The result should look similar to Figure 3-22, if<br />
viewed in <strong>the</strong> Mozilla Firefox Web browser.<br />
Figure 3-22<br />
A Web form with placeholders<br />
added to each field<br />
5. Save <strong>the</strong> file as L3-WebForm-placeholders.html.<br />
6. Leave <strong>the</strong> file and editing tool open if you continue to <strong>the</strong> next exercise during this<br />
session.<br />
✚ MORE INFORMATION<br />
To learn more about <strong>HTML5</strong> input element attributes, visit <strong>the</strong> W3C.org Web site at http://bit.ly/I1PW3P.<br />
Understanding Validation<br />
<strong>HTML5</strong> provides new attributes that validate Web form fields as users are entering<br />
data or when <strong>the</strong>y click <strong>the</strong> submit button. The attributes include required, email, and<br />
pattern, among o<strong>the</strong>rs.