New course! Every coder should learn Generative AI!
Try a free lesson+ 2
what's difference between <th> & <thead> in a table element. plz help
2 Answers
+ 26
exactly
+ 4
TheĀ theadĀ element should be used in conjunction with the tbody and tfoot elements. You use <thead> to encapsulate an entire row (or rows) to designate them as theĀ Table Header. According to the spec, "This division enables user agents to support scrolling of table bodies independently of the table head and foot.