Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
392
The <td> Tag (XHTML Reference)
Introduction
The <td> tag is used to create a cell in a table. The
data can be written between the tags. Usually this tag is nested in a
<tr> row tag.
Example
<table border="1">
<thead>
<tr>
<th>User</th>
<th>EMail</th>
<th>Permission</th>
</tr>
</thead>
<tbody>
<tr>
<td>Sonu</td>
<td>sonu@XXXX.com</td>
<td>Admin</td>
</tr>
<tr>
<td>Mark</td>
<td>Mark@XXXX.com</td>
<td>Admin</td>
</tr>
</tbody>
<tfoot>
<tr>
<td
colspan="3"><b>2 Users found</b></td>
</tr>
<tr>
</tfoot>
</table>
Output
Attributes
Name:
Description:
abbr
Defines a short version of the content of the cell.
align
Aligns the table with one of the following options.
left
right
center
axis
Defines a list of categories, which belongs to the cell.
bgcolor
The background color of the cell. The value can be one of
the following:
rgb(x,x,x) = the color values from 0-255
#xxxxxx = hex value of the color
Colorname = any colorname
char
This attribute can be only used if you set the align
attribute to char. The usage of the attribute is to set the alignment
character. This can be very useful if you have a table row with decimal
numbers and would like to align the row according to the decimal point.
charoff
Defines in conjunction with the “align” attribute the
position of the alignment character.
colspan
Defines through how many cells the current cell is spanned.
headers
Defines a list of IDs of rows and columns that supplies
header information.
height
Defines the height of the cell in pixel or percent.
nowrap
This is an empty attribute and defines that the cell isn’t
wrapped.
rowspan
Defines through how many rows the current row is spanned.
scope
Specifies for the rest of the row and column the header
information. The value must be one of the following values.
row
col
rowgroup
colgroup
valign
Aligns the cell vertically with one of the following
options.
top
middle
bottom
baseline
width
Defines the width of the cell in pixel or percent.