Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: Isn't it strange that TFOOT must be placed between THEAD and TBODY?
1 point by webuiarchitect on Feb 24, 2011 | hide | past | favorite | 3 comments
In an HTML <table>, the TFOOT element must be placed between THEAD And TBODY. http://htmlhelp.com/reference/html40/tables/tfoot.html. What could be the reason behind this?



So that if the tbody is set up with its own scroll bar, the initial parts of the tbody can appear between the thead and the tfoot before the tbody has finished downloading.


This was exactly my answer, before I realized that "webuiarchitect" posted the question 3 times. :-(


Note: <tfoot> must appear before <tbody> within a table, so that a browser can render the foot before receiving all the rows of data.

^^I saw that on my first google search.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: