Table cells support a "headers" HTML attribute
- Published at
- Updated at
- Reading time
I love that even after writing HTML for such a long time, there's always something new to discover. #htmlIsNotEasy
Today I learned that HTML table cells support a
headers attribute. I haven't seen that one before!
I rarely use tables because I usually don't deal with tabular data. But suppose you're building complex tables with cells spanning multiple columns or rows. In that case, you can use
headers to define which table header elements are connected to the particular table cell.
Here are some resources to read more about it: