But I know you cannot have 2 <thead>s in a table. So I was thinking to add the year row to the <tbody> and just give it a class=“year” but not sure if that’s the best.
Anyone have any suggestions as to how to best arrange my table so it is semantically correct?
So I have 2 tables like that one for 2011 and one for 2012. I could have also enclosed the tables in a div with an id of dates I guess. Not sure which one is better or cleaner code. I suppose it doesn’t really matter, does it?
You can have two <tr>s in a <thead>, which allows two rows of heading cells.
Of course, if you are wanting to have other year headings further down, that approach won’t work - if that’s the case, your best bet is probably to use <th colspan=3> within the <tbody>.