Table Data

Table data tags <td> ... </td> define each cell in the table. These tags must be nested within the table row tags. Each row can have different number of cells.

Attributes 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.

Cell 1 Cell 2
Cell 3 Cell 4


plus2net.com




Post your comments , suggestion , error , requirements etc here .




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer