HTML Tables Flashcards
Describe all table elements in order.
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
Number of tfoot elements allowed in a table
One
Element used to make a cell expand horizontally, consuming neighboring cell(s)
colspan
Element used to make a cell expand down vertically, consuming neighboring cell(s)
rowspan
How do you associate a “td” with a specific “th”?
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