<td>

Table Data Cell (XHTML table model)

Use W3C documentation for the XHTML1.1 table model. (http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_tablemodule)

Remarks

One ordinary cell in a table, as opposed to a cell in the table header

Attributes

abbr Abbreviation (XHTML table model)
align Horizontal Alignment (XHTML table model)
axis Axis (XHTML table model)
char Table Cell Alignment Character (XHTML table model)
charoff Table Character Offset (XHTML table model)
colspan Column Span (XHTML table model)
content-type Type of Content
headers Headers (XHTML table model)
id Identifier
rowspan Row Span (XHTML table model)
scope Scope (XHTML table model)
style Style (XHTML table model; MathML 2.0 Tag Set)
valign Vertical Alignment (XHTML table model)

Related Elements

There are two cells elements in the XHTML 1.1 table model that should contain the contents of the table: <td> contains ordinary data, and <th> contains table header data.

Model Description

Any combination of:

This element may be contained in:

<tr>

Example

In the following example, the table is wrapped in an <alternatives> element together with a graphic showing the formatted table:

...

    <table-wrap>
      <alternatives>
	<table rules="rows">
	  <thead>
	    <tr>
	      <th>Color</th>
	      <th>Size</th>
	      <th>Price</th>
	    </tr>
	  </thead>
	  
	  <tbody>
	    <tr>
	      <td rowspan="3">Green</td>
	      <td>small</td>
	      <td>$3.25</td>
	    </tr>
	    <tr>
	      <td>medium</td>
	      <td>$2.25</td>
	    </tr>
	    
	    <tr>
	      <td>large</td>
	      <td>$1.15</td>
	    </tr>
	    
	    <tr>
	      <td rowspan="3">Red</td>
	      <td>small</td>
	      <td>$3.25</td>
	    </tr>
	    
	    <tr>
	      <td>medium</td>
	      <td>$5.25</td>
	    </tr>
	    
	    <tr>
	      <td>large</td>
	      <td>$9.95</td>
	    </tr>
	  </tbody>
	</table>
	<graphic xlink:href="images/tablesample1">
	  <alt-text>A table with columns for color, size, and price.</alt-text>
	  <long-desc>The table has three columns, labeled "Color",
	    "Size", and "Price".
	    It has six rows; reading across, they are:
	    Green, small, $3.25,
	    Green, medium, $2.25,
	    Green, large, $1.15;
	    Red, small, $3.25,
	    Red, medium, $5.25,
	    Red, large, $9.95.
	    (Tbe words "Green" and "Red" occur only once each, in an area
	    three rows in height.)
	  </long-desc>
	</graphic>
      </alternatives>
    </table-wrap>

   ...

The graphic rendering of the table is:

Module

xhtml-table-1.mod