Advanced Search
Stay Signed In
Don't have an account yet?
Start a Free Trial
Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Sams Teach Yourself HTML 4 in 24 Hours, Fourth Edition
You want a Web page with two columns of text side by side. How do you create it?
You think the columns you created for question 1 look too close together. How do you add 30 pixels of space between them?
Write the HTML to create the table shown in the following figure:
With the following table:
<table><tr><td align="top"> …First column of text goes here… </td><td align="top"> …Second column of text goes here… </td></tr></table>
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.)
<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>
You are currently reading a PREVIEW of this book.
Get instant access to over $1 million worth of books and videos.