Workshop


The workshop contains quiz questions and activities to help you solidify your understanding of the material covered. Try to answer all questions before looking at the "Answers" section that follows.

Quiz

1:

You want a web page with two columns of text side by side. How do you create it?

2:

You think the columns you created for question 1 look too close together. How do you add 30 pixels of space between them?

3:

Write the HTML to create the table shown in the following figure:

Answers

A1:

With the following table:

 <table>   <tr>     <td style="vertical-align:top">     First column of text goes here...     </td>     <td style="vertical-align:top">     Second column of text goes here...     </td>   </tr> </table> 


A2:

Add cellspacing="30" to the <table> tag. (Alternatively, you could use cellpadding="15" to add 15 pixels of space inside the edge of each column.)

A3:

 <table border="5">   <tr>     <td rowspan="3">A</td>     <td colspan="3">B</td>   </tr>   <tr>     <td>E</td>     <td>F</td>     <td rowspan="2">C</td>   </tr>   <tr>     <td colspan="2">D</td>   </tr> </table> 





SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net