HTML Tables & Data Grids
Tables are not for layout. Repeat: Tables are not for layout. They are for structured, multi-dimensional data.
Structure
A table is defined by <table>. Inside, we don't think in columns, we think in rows (tr).
Headers vs Data
The first row usually contains headings. Use <th> for these cells. For regular data, use <td>.
Grouping
To help screen readers and styling, group your rows into <thead> (header rows), <tbody> (data rows), and <tfoot> (summary rows).
View Full Transcript+
This section contains the full detailed transcript of the video lessons for accessibility purposes. It covers the hierarchy of table, tr, th, td, and the grouping elements like thead and tbody.
