Make a regular table with three rows and two columns.
The tabledata have a width of 100px and a height of 50px.
A |
B |
C |
D |
E |
F |
Make a regular table with three rows and two columns.
In the first row is a tabledata that spans over two columns. Use the keyword colspan:
<td colspan="???">Where the ??? need to be replaced with the correct value.
A |
|
B |
C |
D |
E |
This exercise is similar to the last one.
The tabledata have a width of 100px and a height of 50px.
A |
||
B |
C |
D |
E |
F |
G |
This exercise is similar to the last one.
The tabledata have a width of 100px and a height of 50px.
A |
B |
C |
D |
E |
|
F |
G |
H |
This exercise is similar to the last one.
The tabledata have a width of 100px and a height of 50px.
A |
||
B |
C |
|
D |
E |
F |
In this exercise, the rowspan is introduced.
The rowspan keyword is similar to the colspan keyword.
It is used in the tabeldata tag. Try it for yourself.
<td rowspan="2">The tabledata have a width of 100px and a height of 50px.
A |
B |
C |
This exercise is similar to the last one.
The tabledata have a width of 100px and a height of 50px.
A |
B |
C |
|
D |
E |
This exercise is similar to the last one.
The tabledata have a width of 100px and a height of 50px.
A |
B |
C |
D |
E |
|
F |
G |
This exercise is similar to the last one.
The tabledata have a width of 100px and a height of 50px.
A |
B |
C |
D |
E |
F |
G |
H |
This exercise is similar to the last one.
The tabledata have a width of 100px and a height of 50px.
A |
B |
C |
E |
F |
|
G |
H |
This exercise is a combination of colspan and rowspan.
The tabledata have a width of 100px and a height of 50px.
A |
B |
|
D |
E |
|
F |
G |
This exercise is similar to the last one.
If you have trouble with the rowspan, remember that in every tablerow you define all tabledata, that start in this row.
Tabledata, that do not start in this row, you can ignore. HTML will take care of this.
Like in this example.
A |
B |
|
C |
D |
|
E |
F |
This exercise is a combination of colspan and rowspan.
The tabledata have a width of 100px and a height of 50px.
A |
B |
||
D |
E |
F |
|
H |
I |