+ 1

How to use "rowspan" atribute?

plz tell with some examples comparing with and without using this attribute.

18th Jun 2017, 9:53 AM
keshav agarwal
keshav agarwal - avatar
3 Answers
+ 4
"rowspan" is used to extend cells down(vertical) and "colspan" to extend cells across(horizontal). To add up they are html table tag attributes. Use them directly on td(table data) elements. i.e <table> <tr> <td rowspan="2"></td> </tr> </table>
18th Jun 2017, 10:05 AM
Benneth Yankey
Benneth Yankey - avatar
+ 2
https://www.sololearn.com/discuss/335559/?ref=app "rowspan" works analogically - it's just spanning <td> downwards, not rightwards
18th Jun 2017, 10:00 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
rowspan is use to combine to rows and center data at center. whiles the colspan is use to combine columns and data is centered. <table> <tr> <td rowspan ="2"></td> </tr> </table>
18th Jun 2017, 2:46 PM
Best Agyemang
Best Agyemang - avatar