News for hackers. Stuff that matters.
Re:Google HTML/CSS Style Guide – Omit Optional Tags by dunham on Saturday September 17, 2016 @01:49PM (#12521534)
Yeah, essentially the _tag_ is optional, but the element is still there.

An example of a tag that almost everyone omits is <tbody>. A <tr> can't exist directly under <table> (per the DTD), so you're explicitly opening a <tbody> with your first <tr> and closing it with your </table>. If you look at the DOM in the browser, the <tbody> will be there.

Re:Google HTML/CSS Style Guide – Omit Optional Tags by euyyn on Saturday September 17, 2016 @10:02PM (#12523565)
What's the tbody for? Can I write a table with multiple tbody's? What would be the effect?
Re:Google HTML/CSS Style Guide – Omit Optional Tags by dunham on Sunday September 18, 2016 @01:40AM (#12524080)
tbody is the table body, the DTD allows multiple tbodys and says "Use multiple TBODY sections when rules are needed between groups of table rows". (By "rules" they mean solid horizontal lines, but I think you'd have to explicitly add any horizontal rules that you want via CSS)

Typically, you have one table header (thead) and one table body. In print, if the table spans multiple pages, you would want the header to re-appear on each page.