Assignment 1
Using a text editor, create an HTML document containing a 300 pixel-wide table that consists of two rows and two columns of centered, black text. Set the border and cellspacing parameters of the table to 0. Set the cellpadding parameter to 10. Assign the cell in column 1, row 1 of the table a background color of aqua. Type the word 'one' in this cell. Assign the cell in column 2, row 1 of the table a background color of yellow. Type the word 'two' in this cell. Assign the cell in column 1, row 2 of the table a background color of lime. Type the word 'three' in this cell. Assign the cell in column 2, row 2 of the table a background color of olive. Type the word 'four' in this cell. Close all the tags that need closing, save your work as "table2.html" and open the page in your favorite Web browser. The table should look like this:
|
one | two |
three | four |