HTML Tables
Organize data into rows and columns — like a spreadsheet built right into your webpage.
Step 1 of 5
Tables: rows and columns for data
Tables were created to solve a specific problem: displaying data that has a natural grid structure — like a class schedule, sports scores, or a pricing comparison. Before tables, there was no way to align data in rows and columns on the web.
Every spreadsheet you have ever used (Google Sheets, Excel) is essentially a table. On the web, sites like ESPN use tables for standings, Amazon uses them for product comparisons, and Wikipedia is full of data tables.
A table is built from the outside in:
| (table data) creates each cell within a row. For header cells, use | instead of | — it bolds the text and tells screen readers "this cell labels the others." Think of it this way: Think of a table like a bookshelf with labeled shelves. The
|
|---|