Graphics Programs Reference
Figure 6-2: Browsers automatically create some elements if they aren't explicitly written.
h e really surprising thing is that in HTML 4, tfoot must come before tbody in the
document structure. HTML 5 removes this restriction, allowing tfoot to follow tbody , and
browsers have never enforced the HTML 4 rule anyway. So while it's surprising, it isn't exactly
h eoretically, the thead and tfoot rows would be placed at the top and bottom of every
table fragment displayed in multiple viewports. h at's a fancy specii cation way of saying that
if you print a long table and it goes for a few pages, the thead and tfoot would be placed at
the top and bottom of every page or fragment of the table appearing on a page. However,
please note my use of the word theoretically. In practice, this never happens. Perhaps one day
it will. As Grover the Waiter once said, to live is to hope.
Remember: One of the big advantages of including thead and tfoot is that you can use
them to uniquely style the cells within. As an example, consider the following HTML 5
< th scope="col">Q1< / th>
< th scope="col">Q2< / th>
Search WWH ::