Module 3 Discussion
1- How is the number of columns in a web table determined?
- The number of columns is based on the maximum number of cells from the table rows.
2- Write code to create a table row with three header cells containing the text: Tompkins, Ramirez, and David.
<.tr>
<.th>Tompkins
<.th>Ramirez
<.th>david
<./tr>
3- Write code to create a table row with three data cells containing the text: Tompkins, Ramirez, and David.
<.tr>
<.td>Tompkins
<.td>Ramirez
<.td>David
<./tr>
4- Write the style rule to display all table elements with collapsed borders.
table {border-collapse: collapse; }
5- Two table cells have adjacent borders. One cell has a 5-pixel-wide double border and the other cell has a 6-pixel-wide solid border. If the table borders are collapsed, what type of border will the two cells share?
The border will be a 6-pixle solid border because it is the border with the larger width.
6- A table data ell contains the text Monday and should stretch across two rows and three columns. Write the HTML code for the cell.
7-What adjustment do you have to make to a table when a cell spans multiple columns to keep the column aligned?
You need to reduce the number of cells following the spanning cell
8-What adjustment do you have to make to a table when a cell spans multiple rows to keep columns aligned?
You need to reduce the number of cells in the rows following the spanning cells
9-Write the style rule to display all table captions at the lower-left corner of the table.
caption { caption-side: bottom;}
Top comments (0)