HTML TABLE TAGS
|
TABLE
TAGS |
DESCRIPTION |
EXAMPLES |
| <table></table> |
Creates a table |
|
| <tr></tr> |
Defines a row within a table. |
|
| <td></td> |
Defines a cell within a row. |
|
| <th></th> |
Used instead of <td>it defines
a "header cell"in which the text
is normally bold and centered.
|
|
| <table border=1> |
Defines the width of the tables
border in pixels.Set value to 0
for tables without borders.
|
|
| <table cellspacing=3> |
Defines the space between the cells of a table in
pixels.Set value to zero "0" for cells with no spacing. |
|
| <table cellpadding=5> |
Defines the space between the inside of the cells
border and the content of the cell in pixels.Set value to 0 for no
padding. |
|
| <table width=50%> |
Defines the width of the table as a percentage of
the document width,or in pixels. |
Click
for example |
<tr align=?>or
<td align=?> |
Sets the alignment of the cells left,right or centre. |
|
<tr valign=?> or
<td valign=?> |
Sets the vertical alignment of the cells to top,middle
or bottom. |
|
| <td colspan=2> |
Sets the number of columns the cell should span (in
this example we have set it to two). |
|
| <td rowspan=2> |
Sets the number of rows a cell should span(in this
example we have set it to two) |
|
| <td nowrap> |
Prevents the contents of a cell from being "wrapped"
to fit. |
a |