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.

16 Likes
FAQ: Learn HTML Tables - Tables - Spanning Columns
#2

Which attribute allows me to span two cells in different rows?

1 Like
#3

I think it’s rowspan=“number”.

3 Likes
#4

rowspan=“2” цифра означает сколько ячеек нужно обьеденить

1 Like
#5

Can I achieve the same result using css { padding:…px} instead?