HTML Tables Flashcards

1
Q

Describe all table elements in order.

A

According to the HTML5 spec, a table may contain “in this order: optionally a caption element, followed by zero or more colgroup elements, followed optionally by a thead element, followed optionally by a tfoot element, followed by either zero or more tbody elements or one or more tr elements, followed optionally by a tfoot element

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

Number of tfoot elements allowed in a table

A

One

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

Element used to make a cell expand horizontally, consuming neighboring cell(s)

A

colspan

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

Element used to make a cell expand down vertically, consuming neighboring cell(s)

A

rowspan

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

How do you associate a “td” with a specific “th”?

A

Use the “td” attribute “headers” set to the “id” of a “th” element.

th id=”diameter” Diameter measured in earths /th
…many other cells…
td headers=”diameter” .38 /td

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