Creating a Table with Merged Cells
📖 Scenario: You are making a simple webpage to show a weekly schedule. Some activities last multiple days, so you want to merge table cells to show this clearly.
🎯 Goal: Build an HTML table that uses colspan and rowspan to merge cells, making the schedule easy to read.
📋 What You'll Learn
Create a table with 3 rows and 4 columns
Merge two cells horizontally using
colspanMerge two cells vertically using
rowspanUse semantic HTML with
<table>, <thead>, <tbody>, <tr>, <th>, and <td>Include a
lang attribute in the <html> tag and a charset meta tag💡 Why This Matters
🌍 Real World
Tables with merged cells are common in schedules, calendars, and reports to show grouped or spanning information clearly.
💼 Career
Knowing how to use colspan and rowspan is essential for web developers to create clear, accessible data tables in websites and apps.
Progress0 / 4 steps