yes I want to know more about the html tables in details: quick revision, 15 bites

All 15 revision bites from this kit, free and with no sign-up.

Tables Are Built Row by Row

Rows first, cells inside — that's the rule.

An HTML table is constructed **row by row**, not column by column. Each `<tr>` defines a row, and cells (`<th>` or `<td>`) live inside that row.

Takeaway. You always write rows first; the browser figures out the columns from the cells inside each row.

Core Table Tags You Must Know

Four tags power every HTML table.

Takeaway. Memorize these four: table, tr, th, td — every table is built from them.

<th> vs <td>: Header or Data?

One is bold, one is plain — know why.

Takeaway. Use <th> for labels and <td> for values — never swap them just for styling.

A Complete Table with Header and Body

See a real table come together.

Takeaway. Header row first, then one <tr> per data record — that's the standard pattern.

colspan and rowspan: Merging Cells

One cell can span many columns.

Takeaway. Use colspan for horizontal merges and rowspan for vertical merges — but keep them minimal for clarity.

Grouping Rows: thead, tbody, tfoot

Split your table into three zones.

These tags don't change the visual look by default, but they **organize the table semantically** and help screen readers and CSS target sections.

Takeaway. thead, tbody, tfoot make big tables easier to read, style, and print.

Don't Use Tables for Page Layout

Tables are for data, not design.

Takeaway. If the content isn't naturally rows-and-columns data, don't use a table.

Add a Caption for Context

Every table deserves a title.

The `<caption>` tag gives a table a visible title and is read aloud by screen readers, improving accessibility.

Takeaway. Always add <caption> — it's one line that boosts clarity and accessibility.

Borders Are Not Automatic

No border unless you ask for one.

By default, HTML tables have **no visible borders**. The old `border="1"` attribute works but is deprecated — modern practice uses CSS `border` or `border-collapse`.

Takeaway. Style table borders with CSS, not the deprecated border attribute.

Exam Favourite: Tag Order and Nesting

Examiners love testing nesting order.

Takeaway. Wrong nesting is the #1 reason students lose marks on table questions.

Remember the Nesting Order

Table → Row → Cell. Say it thrice.

Think **T-R-C**: **T**able contains **R**ows, **R**ows contain **C**ells. Just like a spreadsheet — sheet, row, cell.

Takeaway. T-R-C (Table-Row-Cell) keeps your nesting correct every time.

Where Tables Power the Real Web

Tables run more of the web than you think.

Takeaway. Any time data is naturally rows-and-columns, HTML tables are the right tool.

Making Tables Accessible

Screen readers need your table's map.

For complex tables, add `scope="col"` or `scope="row"` to `<th>` so assistive tech knows whether a header labels a column or a row.

Takeaway. scope attributes turn a visual table into an accessible one.

Empty Cells Break Alignment

Never leave a cell truly empty.

Takeaway. Use &nbsp; in blank cells to preserve table alignment.

Tables Predate CSS by Years

Tables were the original layout tool.

Before CSS Flexbox and Grid existed, web designers used invisible HTML tables to position headers, sidebars, and footers. This is why old websites often look rigid and hard to make responsive.

Takeaway. Tables shaped early web design — modern CSS exists partly to replace them.

Make your own

Your notes can be a kit like these

Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free, in 42 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Exam prep

Get Veda free See what students get

Free to start · No ads · Works in 42 languages