Here is a more advanced example of the use of tables. Start a new document in Notepad and type or copy and paste from this example. Save the document as moretrees.htm. This table will have two rows. Each row has two cells. Each cell is 50% of the width of the table. Each cell is a different color. |
<html> <head> <title>Trees</title> </head> <body> <table width='400' border='1' cellpadding='3' cellspacing='3'> <tr><td width='50%' bgcolor='#66FF66'> <p>ELM</p> </td> <td width='50%' bgcolor='#CCFF99'> <p>MAPLE</p> </td> </tr> <tr><td width='50%' bgcolor='#00CC33'> <p>BIRCH</p> </td> <td width='50%' bgcolor='#339933'> <p>PINE</p> </td></tr> </table> </body> </html> |