Table Tags

In every document we use tables to arrange items to place different values in front of some different things.
Similarly in HTML we use table tag to make tables we use table tag <table>.
It is written as
Tag: <table></table> Creates a table

For rows:
Tag: <tr></tr> Sets off each row in a table

For cells:
Tag: <td></td> Sets off Each cell in a table>

Attributes:
To align the test in table
align=left, right, center

To manig boder line:
To manage border of the table
border=x

For cell pading
cellpadding=x

For cell spacing
cellspacing=x

Width and height of the table
width=
height=

How these work and look: All these tags must be closed. </>

<table width='250' height='250' border=1 cellpadding=2 cellspacing=2>
<tr>
<td>cell 1</td>
<td>cell 2</td>
</tr>
</table>
cell 1 cell 2

0 comments:

Post a Comment

Entri Populer