Web Design – Homework #8 – Lesson 18 Name: ________________________ Date: ______________ WD_____ 1. Please show the HTML code to build a table with the following attributes: Row 1, column 1, text = Dave is nice Row 1, column 2, text = Donna is silly Row 2, column 1, text = Susan is smart Row 2, column 2, text = Sally is kind __________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________ 2. Using the same table from above add the following to your table: Border thickness = 2, align the elements of cell at Row 1, column 1 to the right, align the elements of cell at Row 1, column 2 to the top, align the elements of cell at Row 2, column 1 to the left, align the elements of cell at Row 2, column 2 to the bottom. _____________________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ _____________________________ 3. The attribute ____________________ specifies how much empty "space" exists between items in the cells and the walls of the cells. 4. The attribute ____________________ specifies (in pixels) the width between the inner lines that divide the cells. 5. The ____________________ tag places a string of text (centered to the width of the table) as a title/caption for the table. 6. Indicate the code needed for a table with the following attributes, border = 2, cellspacing = 3, cellpadding=3, the caption should read as, Fun with Tables. ____________________________________________________________________________ ____________________________________________________________________________ 7. Indicate the code needed to set the background of a cell to black. ________________________________________________________________________ 8. Indicate the code needed to set the background of a row to black. _________________________________________________________________________ 9. Indicate the code needed to set the background of a table to black. ________________________________________________________________________