Practice and reinforce the concepts from Lesson 10
In this activity, you'll create your own interactive class timetable using HTML tables. You'll learn how to:
<table>
, <tr>
, <td>
, <th>
)Total time needed: 45-60 minutes
:white_check_mark: Watch the video tutorial above
:white_check_mark: Have your school timetable ready as reference
:white_check_mark: Think about your favorite colors for styling
:white_check_mark: Make sure you're logged into EduBlocks
:warning: Warning Important: After clicking the link above, make sure to click the "Clone" button to create your own copy of the project!
Time needed: 30-40 minutes
<table>
block to your workspace<tr>
(table row) block inside the table<th>
blocks:bulb: Tip Start with just Monday to Friday - you can always add weekends later!
:bulb: Tip If your borders look doubled, don't worry! The next step will fix that.
<tr>
(row) block<th>
block for the time (e.g., "9:00-10:00")<td>
blocks for each subject in that time slot:warning: Warning Remember: Each row needs the same number of cells. If you have 6 columns (Time + 5 days), every row needs 6 cells!
.break
for break times (maybe a light yellow background?).lunch
for lunch period (perhaps a light green?).pe
for Physical Education (light blue could work!)Here's an example of how your finished timetable might look:
Time | Monday | Tuesday | Wednesday | Thursday | Friday |
---|---|---|---|---|---|
9:00-10:00 | Math | English | Science | Math | Art |
10:00-11:00 | English | Math | History | Science | Music |
11:00-11:30 | BREAK | BREAK | BREAK | BREAK | BREAK |
11:30-12:30 | Science | PE | Math | English | Computer |
12:30-1:30 | LUNCH | LUNCH | LUNCH | LUNCH | LUNCH |
:bulb: Tip You can customize this with your actual subjects and times. Add more rows if your school day is longer!
Time needed: Use this section if you get stuck (5 minutes)
Solution: Count your cells! Each row must have exactly the same number of <td>
or <th>
blocks.
Solution: Make sure you've added both the border style AND the border-collapse style to your table.
Solution: Check that you've typed the color names correctly (e.g., "lightblue" not "light blue").
Solution: Add padding to your cells using a style block with padding: 10px;
:information_source: Info Still having issues? Watch the video tutorial again or ask your teacher for help!
Time needed: 5 minutes
When you've completed your class timetable and tested that everything works:
:warning: Warning Before submitting, check that:
- :white_check_mark: Your table has clear borders
- :white_check_mark: All time slots and subjects are filled in
- :white_check_mark: Colors make the timetable easy to read
- :white_check_mark: Break and lunch times are included
- :white_check_mark: The webpage displays correctly in preview mode
Click here to submit your Class Timetable HTML Table
If you finish early, try these challenges:
<h1>
blockGreat job! You've learned how to create structured data displays using HTML tables! :tada: