Table DataAttributes of Table Data: Align: Used to specify the horizontal alignment of the text with in the cell. Colspan: This is used when the width of the cell has to be mentioned in number of colums and usually used when a cell occupies more than one column. Rowspan: This is used when the height of the cell has to be mentioned in number of rows and usually used when a cell occupies more than one row. Example: <table border=1> <tr> <td>Cell 1 </td> <td>Cell 2 </td> </tr> <tr> <td>Cell 3 </td> <td>Cell 4 </td> </tr> </table> Above code defines a table with two rows and four cells as below.
This article is written by plus2net.com team.
| ||||
| ||||