1. When to Use HTML Tables
HTML tables () are designed specifically for presenting tabular data—information arranged in logical rows and columns (e.g., student marksheet, test schedules, pricing tables, or financial reports). Never use tables for website layout design.
2. Basic Table Anatomy
: Container element wrapping the entire table structure.
(Table Row): Defines a horizontal row.
(Table Header): Defines a column or row header cell (bold and centered by default).
(Table Data): Defines a standard data cell.
| Roll Number |
Candidate Name |
Score (Out of 100) |
| CBT-101 |
Rohan Verma |
92 |
| CBT-102 |
Priya Singh |
88 |
💻 Code Editor (Monaco VS Code Engine)
| |