HTML Tables Flashcards

1
Q

Cells in the head of a table get what element?

A

th

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the table footer element and where does it belong?

A

tfooter, it belongs above the table just below thead

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the heading element for a table?

A

thead (with th cells inside)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s the common way to remove spacing between cells?

A

border-collapse: collapse;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Make a cell cover more than 1 row or column

A

use colspan and rowspan, e.g. /td colspan=”3”/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly