Blog

Learn How to Build Tables in HTML Step by Step

Written by Mukesh Saini | 15 Dec, 2025 11:30:00 AM

Organize data effectively using tables for clear presentation on your web pages.

Basic Table Structure

HTML tables use <table>, <tr>, <th>, and <td> tags:

Name Age City
John 25 New York
Jane 28 Los Angeles
  • <table> Container for the table
  • <tr> Table row
  • <th> Table header (bold by default)
  • <td> Table cell

Spanning Rows and Columns

Merge cells with colspan or rowspan

Personal Info Location
John Doe New York
  • colspan Merges multiple columns
  • rowspan Merges multiple rows

Table Captions

Add a descriptive caption above the table

Team Members Information
Name Role
John Developer

Improves accessibility and context