# Tables for Data: Rows, Columns and Styling Them

When data has rows and columns that mean something, such as prices, opening hours or high scores, a table holds it, so you write it with caption, thead, tbody, th and td, then make it readable with border-collapse, padding, aligned numbers, stripes and a box that scrolls on a phone.

![Cheat sheet for the lesson Tables for Data: Rows, Columns and Styling Them](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/80d2022ee2004fc68abb04aabeb70c15.webp)

- Category: CSS
- Level: Apprentice
- Tags: &lt;caption>, Border collapse, CSS, Data table, html, scope attribute, Table header cell
- Updated: November 13, 2026

Source: https://www.ask-codey.com/cheat-sheets/css-tables-for-data-cheat-sheet
