Friday, October 17, 2014

Write a HTML program to demonstrate the use of <TABLE> tag using rowspan and colspan property.

Write a HTML program to demonstrate the use of <TABLE> tag using rowspan and colspan property. Code : table2.html <html> <head> <title>example of TABLE tag</title> </head> <body> <table align="center" border="2" height="50width="50%"> <tr> <td align=center colspan=2>1</td> <td align=center colspan=2>1</td> <td align=center colspan=2>1</td> <td align=center colspan=2>1</td> <td align=center colspan=2>1</td> </tr> <tr> <td align=center colspan=5>2</td> <td align=center colspan=5>2</td> </tr> <tr> <td align=center colspan=2>3</td> <td align=center colspan=2>3</td> <td align=center colspan=6>3</td> </tr> <tr> <td align=center colspan=5>4</td> <td align=center colspan=5>4</td> </tr> </table> </body></html>

No comments: