GATE | GATE-CS-2009 | Question 20



Consider the HTML t able definition given below:

< table border=1> <tr> <td rowspan=2> ab </td> <td colspan=2> cd </td> </tr> <tr> <td> ef </td> <td rowspan=2> gh </td> </tr> <tr> <td colspan=2> ik </td> </tr> </table>

The number of rows in each column and the number of columns in each row are:
(A) (2, 2, 3) and (2, 3, 2)
(B) (2, 2, 3) and (2, 2, 3)
(C) (2, 3, 2) and (2, 3, 2)
(D) (2, 3, 2) and (2, 2, 3)


Answer: (C)

Explanation: cd

ab ef

ij gh

ab -> rowspan “2”



cd -> colspan “2”

1st row closed

<tr> is row

<td> is data

ef placed in 2nd row. gh is in same row but rowspan “2”

2nd row also closed.

Move to 3rd row. Insert ij . its colspan “2”.

More information:
[1]www.w3schools.com
[2]http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_td

 

Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.