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 : table3.html <html> <head> <title>example of TABLE tag</title> </head> <body> <table align="center" border="2" height="50%” width="50%" bgcolor=”purple”> <tr> <td>1</td> <td>1</td> <td>1</td> <td>1</td> </tr> <tr> <td rowspan=2>2</td> <td>2</td> <td>2</td> <td>2</td> </tr> <tr> <td>3</td> <td colspan=2>3</td> </tr> <tr> <td>4</td> <td rowspan=2>4</td> <td>4</td> <td>4</td> </tr> <tr> <td>5</td> <td>5</td> <td>5</td> </tr> </table> </body> </html>

No comments: