Welcome to the Treehouse Community
Looking to learn something new?
HTML headers and footers
The video I'm referring to is: http://teamtreehouse.com/library/websites/html/tables/headers-and-footers @minute 01:41
Why the author in the video about table headers and footers put the tfoot element under the thead directly? and why didn't he use the tbody as well?
Derek Hanson7,838 Points
The tfoot does seem to be an illogical use since in HTML coding your head followed by a body then the footer come into place. However, what the footer allows to print the footer first in the browser before the rest of the information is displayed. There may be some context that for search engine purposes you want to load this first (I'm not sure what it is but I guess there are reasons. More importantly by it being set this way browsers are program to make this information scroll-able which makes it more user friendly.. Also if you have large tableture data and if someone wants or needs to print that information then they are able to have both the header and the footer to show at the end of each page rather than receiving the footer as the last part of page. If you write a table you will see that the footer does still appear at the end of the page.
I agree it seems a little illogical but a group of people have agreed on internet standards have agreed that this is the best way to render the information.
Thanks, But did the author miss tbody element in the video?
Still waiting for a clarification from Nick Pettit. : )