What should colspan="2" look like?


#1

Question

What should the example for colspan=“2” in this exercise look like? What does a td element look like when it spans multiple columns?

Answer

Here is what the html will look like on the page (with a little extra css added to make the sections clearer).
17%20AM
Note that the “Out of Town” td element spans both the “Monday” and “Tuesday” columns, for a total colspan of 2.


FAQ: Learn HTML Tables - Tables - Colspan