Is it semantically appropriate to have a header column in HTML? -
I have a table of information, but instead of the typical table where the headings are at the top:
Foo. Fornord | | Fiji | Buzz ---- | ------- | ------- | ----------------- 42 | Yes. No | Mr 13 Yes. Flags | Colon mustard 1 | Plum | No | Ms. Red Color
I'll put it down:
Foo | 42 | 13. 1st Fornord | Yes. Yes. Plum Fizzy | No | Flags | No buzz. Sir | Colonel mustard | Ms. Scarlet
Obviously this is permitted by doing something
& lt; Table & gt; & Lt; Tr & gt; & Lt; Th & gt; Top 1 & lt; / Th & gt; & Lt; Td> Data 1 & lt; / Td> & Lt; / Tr & gt; & Lt; Tr & gt; & Lt; Th & gt; Heading 2 & lt; / Th & gt; & Lt; Td> Data 2 & lt; / Td> & Lt; / Tr & gt; & Lt; / Table & gt;
So I am planning to do it in some way, but I want to see if it is in any kind of brakes or something else in the sense. What is the right way to do this? There is nothing wrong with doing this, to make it more accessible, on the TH tag = " Line "attribute, which tells assistive technologies that the header is actually for the line (not the columns).
See example 1 here:
Comments
Post a Comment