Home UP Previous Next
Q8. Consider the following html code. What does the command rowspan=2 does? <tr> <td rowspan=2>Cell A & D</td><td>Cell B</td><td>Cell C</td> </tr>
A. This produces two different columns separated by a border
B. This allows the cell to span two rows
C. This allows the cell to span two columns
D. This produces two different rows separated by a border
Correct Answer: B.
Explanation:
The attribute rowspan=2 allows that cell to span two rows. If you want a cell to span more than column, use the colspan=n attribute.
Home Previous Next