HTML Tables Flashcards
1
Q
Cells in the head of a table get what element?
A
th
2
Q
What is the table footer element and where does it belong?
A
tfooter, it belongs above the table just below thead
3
Q
What is the heading element for a table?
A
thead (with th cells inside)
4
Q
What’s the common way to remove spacing between cells?
A
border-collapse: collapse;
5
Q
Make a cell cover more than 1 row or column
A
use colspan and rowspan, e.g. /td colspan=”3”/
6
Q
What property and value ensure table column widths will remain as intended despite width of content?
A
table-layout: fixed; // or auto (use on the table element)