23.05.2015 Views

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

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.

80 | Lesson 3<br />

Email<br />

<br />

Phone<br />

<br />

Questions or<br />

Comments<br />

<br />

LICENSED PRODUCT NOT FOR RESALE<br />

<br />

<br />

<br />

<br />

<br />

<br />

2. Save <strong>the</strong> file as L3-WebForm-orig.html. The rendered version is shown in<br />

Figure 3-20.<br />

Figure 3-20<br />

The beginning of a Web form<br />

3. The Web form looks unstructured. Ideally, you would use CSS to apply alignment, but<br />

because you haven’t learned CSS yet, you can apply a workaround to make <strong>the</strong> fields<br />

align vertically. One method is to add start and end tags around each<br />

label/input pair. This would align <strong>the</strong> fields vertically and add boxes around <strong>the</strong>m.<br />

<strong>Using</strong> opening and closing tags instead of tags would accomplish<br />

<strong>the</strong> same thing but without adding boxes. For this exercise, use <strong>the</strong> tags.<br />

Figure 3-21 shows <strong>the</strong> same Web form with tags around <strong>the</strong> label/input pairs,<br />

including <strong>the</strong> comments field.

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

Saved successfully!

Ooh no, something went wrong!