Table Data Cell XHTML tag


Table Data Cell Transitional   Strict
td tags example tags example
Must be contained in <table>   As Transitional  
Must contain in opening tag   ----------------------   ----------------------
Must not contain in opening tag name=""
<table >
<tr>
<td name="bluecell" >&nbsp;</td>
<td >&nbsp;</td>
</tr>
</table>
As Transitional  
Can contain in opening tag align="" 
[Horizontal align]

align="left"
align="right"
align="center"
align="justify"

__________________
valign=""
[Vertical align]

valign="top"
valign="middle"
valign="baseline"
valign="bottom"

baseline = aligns the cells along the baselines of the text. example

__________________
id=""





__________________
CELL WIDTH - percentage [%]

width="%"






__________________
CELL WIDTH - pixels

width=""

Note: 
you do Not add "px" 
after the amount

e.g [width="500px"]

 
align="left"

<table>
<tr>
<td  align="left">text</td>
<td>&nbsp;</td>
</tr>
</table>
__________________
valign="top"

table >
<tr>
<td valign="top" >text</td>
<td>&nbsp;</td>
</tr>
</table>



_______________
<table >
<tr>
<td id="bluecell" >&nbsp;</td>
<td >&nbsp;</td>
</tr>
</table>
__________________
CELL WIDTH - percentage [%]

<table width="100%">
<tr>
<td width="50%">&nbsp;</td>
<td width="50%">&nbsp;</td>
</tr>
</table>

__________________
CELL WIDTH - pixels

<table width="200">
<tr>
<td width="50">&nbsp;</td>
<td width="50">&nbsp;</td>
</tr>
</table>
As Transitional







______________
As Transitional










______________
As Transitional





______________
Cell width will
Fail Strict Validation

width="%"






______________
Cell width will
Fail Strict Validation






























______________



<table width="100%">
<tr>
<td width="50%">&nbsp;</td>
<td width="50%">&nbsp;</td>
</tr>
</table>

______________


<table width="200">
<tr>
<td width="50">&nbsp;</td>
<td width="50">&nbsp;</td>
</tr>
</table>
Must contain between tags Text 
or non-breaking space
<td>Text</td>
<td> &nbsp;</td>
  As Transitional
Can contain between tags        
Must not contain between tags        
Must not be contained in        
Can be contained in        
The td element defines a data cell in a table. TD elements are contained within a TR element (a table row), which may also contain TH elements for header cells. When a cell's contents act as both header information and table data, TD should be used.