HTML Tables Flashcards
This table structure element contains all other table elements.
<table>...</table>
This element adds a table caption, which appears above the table by default.
<caption>...</caption>
This table element creates a table row.
<tr>...</tr>
True or False? All table data should be nested within a table row.
True
This table element is used to designate column or row headers.
<th>...</th>
This table element is used to contain table cell data.
<td>...</td>
This CSS property is used to define the style of a table border.
border
This CSS property combines the borders of adjacent cells into a single border instead of separating them.
border-collapse
This CSS property determines the amount of space between the borders of adjacent cells within a table.
border-spacing
When this CSS property is applied to the <td> or <th> element, it will specify the amount of space between cell data and the cell border.
padding
This CSS property is used to define how far the table or cell will extend horizontally across the page.
width
This CSS property determines the horizontal alignment of text within a table or a webpage.
text-align
How to tell how many rows are in a table?
Count the <tr> elements
How to tell how many columns are in a table?
Count the <td> elements
How to tell if a table has column headers?
Is the first row made of <th> or <td> elements