HTML table advanced features and accessibility - Learn web development | MDN

In my solution to the table with id and headers attributes I have added headers attributes to the table headers with city names, associating those with the country. In the given solution this is not the case.

My question is whether my solution is wrong or does it not really matter?

Hi @jruota

I don’t know how much it matters, but since the headers attribute is also valid on <th>, I think it would make sense to associate the sub headers with their main headers like you did.

You could open an issue on the MDN Github repo to get the opinion of the technical writers.

One remark about your code:
On the sub header at the top (“Trousers” etc.) you include belgium in the headers attribute. This should be removed.

See you,
Michael