So I want to render a timetable in HTML, such that each column has a title (the day) and each row has a title (the time). I’ve just found out that you can only use <th> for titles in the <thead> section, and I can’t find an alternative for creating titles for the rows. I’m currently using the <th>s and their id’s to give headers to the timetable entries. The values of the header are then used to enter data into those cells. So is there any way to add titles to rows so I can preserve this behaviour?
So I want to render a timetable in HTML, such that each column has
Share
If a cell is a header, then use a
<th>— anywhere in a table. If it is a header for a row or a column, use ascopeattribute. If the relationship is more complicated, use aheadersattribute on the<td>elements for which it is a header.Also note the comment in the DTD that says: TH is for headers, TD for data, but for cells acting as both use TD