1. Structuring Data with Rows, Columns, and Cells
A table is constructed row by row from top to bottom. Every row must maintain a consistent count of cells ( Modern tables are styled with CSS rather than outdated HTML attributes like or ) unless cells span across multiple columns.
2. Complete Tabular Schedule Example
Date
Subject
Duration
Shift
25 Oct 2026
Physics Part I
90 Minutes
Morning (09:00 AM)
26 Oct 2026
Chemistry Part I
90 Minutes
Afternoon (02:00 PM)
3. Styling Tables with CSS
cellpadding and cellspacing:table {
width: 100%;
border-collapse: collapse; /* Collapses double borders into a clean single line */
}
th, td {
padding: 12px 16px;
border: 1px solid #e2e8f0;
text-align: left;
}
th {
background-color: #f8fafc;
font-weight: 600;
}
📝 Live Lesson Practice