ZVON > References > XHTML Reference
   Frameset XHTML   >> Frameset << | Strict | Transitional |  

Go to Standard
Element: td
Attributes: | abbr | align | axis | bgcolor | char | charoff | class | colspan | dir | headers | height | id | lang | nowrap | onclick | ondblclick | onkeydown | onkeypress | onkeyup | onmousedown | onmousemove | onmouseout | onmouseover | onmouseup | rowspan | scope | style | title | valign | width | xml:lang |
Parents: | tr |
Children: | #PCDATA | a | abbr | acronym | address | applet | b | basefont | bdo | big | blockquote | br | button | center | cite | code | del | dfn | dir | div | dl | em | fieldset | font | form | h1 | h2 | h3 | h4 | h5 | h6 | hr | i | iframe | img | input | ins | isindex | kbd | label | map | menu | noscript | object | ol | p | pre | q | s | samp | script | select | small | span | strike | strong | sub | sup | table | textarea | tt | u | ul | var |

Your browser display:
A test table with merged cells
Average Red
eyes
height weight
Males 1.9 0.003 40%
Females 1.7 0.002 43%
Source [  Open as XHTML document  ]

<table border="1" summary="This table gives some statistics about fruit flies: average height and weight, and percentage with red eyes (for both males and females).">
     <caption>
          <em>A test table with merged cells</em>
     </caption>
     <tr>
          <th rowspan="2"/>
          <th colspan="2">Average</th>
          <th rowspan="2">Red
               <br/>eyes
          </th>
     </tr>
     <tr>
          <th>height</th>
          <th>weight</th>
     </tr>
     <tr>
          <th>Males</th>
          <td>1.9</td>
          <td>0.003</td>
          <td>40%</td>
     </tr>
     <tr>
          <th>Females</th>
          <td>1.7</td>
          <td>0.002</td>
          <td>43%</td>
     </tr>
</table>

Your browser display:
...header information...
...footer information...
...first row of block one data...
...second row of block one data...
...first row of block two data...
...second row of block two data...
...third row of block two data...
Source [  Open as XHTML document  ]

<table>
     <thead>
          <tr>
               <th>...header information...</th>
          </tr>
     </thead>
     <tfoot>
          <tr>
               <th>...footer information...</th>
          </tr>
     </tfoot>
     <tbody>
          <tr>
               <td>...first row of block one data...</td>
          </tr>
          <tr>
               <td>...second row of block one data...</td>
          </tr>
     </tbody>
     <tbody>
          <tr>
               <td>...first row of block two data...</td>
          </tr>
          <tr>
               <td>...second row of block two data...</td>
          </tr>
          <tr>
               <td>...third row of block two data...</td>
          </tr>
     </tbody>
</table>

Your browser display:
cell 1-1 cell 1-2 cell 1-3 cell 1-4 cell 1-5
cell 2-1 cell 2-2 cell 2-3 cell 2-4 cell 2-5
cell 3-1 cell 3-2 cell 3-3 cell 3-4 cell 3-5
Source [  Open as XHTML document  ]

<table border="1">
     <colgroup span="2" width="100"/>
     <colgroup span="3" width="0*"/>
     <tr>
          <td> cell 1-1</td>
          <td> cell 1-2</td>
          <td> cell 1-3</td>
          <td> cell 1-4</td>
          <td> cell 1-5</td>
     </tr>
     <tr>
          <td> cell 2-1</td>
          <td> cell 2-2</td>
          <td> cell 2-3</td>
          <td> cell 2-4</td>
          <td> cell 2-5</td>
     </tr>
     <tr>
          <td> cell 3-1</td>
          <td> cell 3-2</td>
          <td> cell 3-3</td>
          <td> cell 3-4</td>
          <td> cell 3-5</td>
     </tr>
</table>

Your browser display:
cell 1-1 cell 1-2 cell 1-3 cell 1-4
cell 2-1 cell 2-2 cell 2-3 cell 2-4
cell 3-1 cell 3-2 cell 3-3 cell 3-4
Source [  Open as XHTML document  ]

<table border="1">
     <colgroup width="100" style="color:blue">
          <col/>
          <col span="2" width="200" style="color:red"/>
          <col/>
     </colgroup>
     <tr>
          <td> cell 1-1</td>
          <td> cell 1-2</td>
          <td> cell 1-3</td>
          <td> cell 1-4</td>
     </tr>
     <tr>
          <td> cell 2-1</td>
          <td> cell 2-2</td>
          <td> cell 2-3</td>
          <td> cell 2-4</td>
     </tr>
     <tr>
          <td> cell 3-1</td>
          <td> cell 3-2</td>
          <td> cell 3-3</td>
          <td> cell 3-4</td>
     </tr>
</table>

Your browser display:
x-x y-y z-z
xx-xx yy-yy zz-zz
xxx-xxx yyy-yyy zzz-zzz
Source [  Open as XHTML document  ]

<table border="1" width="400">
     <col width="200"/>
     <col width="1*"/>
     <col width="2*" align="char" char="-"/>
     <tr>
          <td>x-x</td>
          <td>y-y</td>
          <td>z-z</td>
     </tr>
     <tr>
          <td>xx-xx</td>
          <td>yy-yy</td>
          <td>zz-zz</td>
     </tr>
     <tr>
          <td>xxx-xxx</td>
          <td>yyy-yyy</td>
          <td>zzz-zzz</td>
     </tr>
</table>

Your browser display:
Cups of coffee consumed by each senator
Name Cups Type of Coffee Sugar?
T. Sexton 10 Espresso No
J. Dinnen 5 Decaf Yes
A. Soria Not available
Source [  Open as XHTML document  ]

<table border="1">
     <caption>Cups of coffee consumed by each senator</caption>
     <tr>
          <th>Name</th>
          <th>Cups</th>
          <th>Type of Coffee</th>
          <th>Sugar?</th>
     </tr>
     <tr>
          <td>T. Sexton</td>
          <td>10</td>
          <td>Espresso</td>
          <td>No</td>
     </tr>
     <tr>
          <td>J. Dinnen</td>
          <td>5</td>
          <td>Decaf</td>
          <td>Yes</td>
     </tr>
     <tr>
          <td>A. Soria</td>
          <td colspan="3">
               <em>Not available</em>
          </td>
     </tr>
</table>

Your browser display:
1 2 3
4 5 6
7 8 9
Source [  Open as XHTML document  ]

<table border="50" frame="vsides" rules="cols">
     <tr>
          <td>1</td>
          <td>2</td>
          <td>3</td>
     </tr>
     <tr>
          <td>4</td>
          <td>5</td>
          <td>6</td>
     </tr>
     <tr>
          <td>7</td>
          <td>8</td>
          <td>9</td>
     </tr>
</table>

Your browser display:
1 2 3
4 5 6
7 8 9
a b c
d e f
g h i
Source [  Open as XHTML document  ]

<table border="10" cellspacing="50">
     <tr>
          <td>
               <table border="2" frame="border" rules="rows">
                    <tr>
                         <td>1</td>
                         <td>2</td>
                         <td>3</td>
                    </tr>
                    <tr>
                         <td>4</td>
                         <td>5</td>
                         <td>6</td>
                    </tr>
                    <tr>
                         <td>7</td>
                         <td>8</td>
                         <td>9</td>
                    </tr>
               </table>
          </td>
     </tr>
     <tr>
          <td>
               <table border="2" frame="border" rules="cols">
                    <tr>
                         <td>a</td>
                         <td>b</td>
                         <td>c</td>
                    </tr>
                    <tr>
                         <td>d</td>
                         <td>e</td>
                         <td>f</td>
                    </tr>
                    <tr>
                         <td>g</td>
                         <td>h</td>
                         <td>i</td>
                    </tr>
               </table>
          </td>
     </tr>
</table>

Your browser display:
Vegetable Cost per kilo
Lettuce $1
Silver carrots $10.50
Golden turnips $100.30
Source [  Open as XHTML document  ]

<table border="1">
     <colgroup>
          <col/>
          <col align="char" char="."/>
     </colgroup>
     <thead>
          <tr>
               <th>Vegetable</th>
               <th>Cost per kilo</th>
          </tr>
     </thead>
     <tbody>
          <tr>
               <td>Lettuce</td>
               <td>$1</td>
          </tr>
          <tr>
               <td>Silver carrots</td>
               <td>$10.50</td>
          </tr>
          <tr>
               <td>Golden turnips</td>
               <td>$100.30</td>
          </tr>
     </tbody>
</table>

Your browser display:
11111 22222 33333
44444 55555 66666
77777 88888 99999
Source [  Open as XHTML document  ]

<table cellspacing="10" cellpadding="20" border="1">
     <tr>
          <td>11111</td>
          <td>22222</td>
          <td>33333</td>
     </tr>
     <tr>
          <td>44444</td>
          <td>55555</td>
          <td>66666</td>
     </tr>
     <tr>
          <td>77777</td>
          <td>88888</td>
          <td>99999</td>
     </tr>
</table>

Your browser display:
CODE-PAGE SUPPORT IN MICROSOFT WINDOWS
Code-Page
ID
Name ACP OEMCP Windows
NT 3.1
Windows
NT 3.51
Windows
95
1200 Unicode (BMP of ISO/IEC-10646) X X *
1250 Windows 3.1 Eastern European X X X X
1251 Windows 3.1 Cyrillic X X X X
1252 Windows 3.1 US (ANSI) X X X X
1253 Windows 3.1 Greek X X X X
1254 Windows 3.1 Turkish X X X X
1255 Hebrew X X
1256 Arabic X X
1257 Baltic X X
1361 Korean (Johab) X ** X
437 MS-DOS United States X X X X
708 Arabic (ASMO 708) X X
709 Arabic (ASMO 449+, BCON V4) X X
710 Arabic (Transparent Arabic) X X
720 Arabic (Transparent ASMO) X X
Source [  Open as XHTML document  ]

<table border="2" frame="hsides" rules="groups" summary="Code page support in different versions of MS Windows.">
     <caption>CODE-PAGE SUPPORT IN MICROSOFT WINDOWS</caption>
     <col align="center"/>
     <col align="left"/>
     <col align="center" span="2"/>
     <col align="center" span="3"/>
     <thead valign="top">
          <tr>
               <th>Code-Page
                    <br/>ID
               </th>
               <th>Name</th>
               <th>ACP</th>
               <th>OEMCP</th>
               <th>Windows
                    <br/>NT 3.1
               </th>
               <th>Windows
                    <br/>NT 3.51
               </th>
               <th>Windows
                    <br/>95
               </th>
          </tr>
     </thead>
     <tbody>
          <tr>
               <td>1200</td>
               <td>Unicode (BMP of ISO/IEC-10646)</td>
               <td/>
               <td/>
               <td>X</td>
               <td>X</td>
               <td>*</td>
          </tr>
          <tr>
               <td>1250</td>
               <td>Windows 3.1 Eastern European</td>
               <td>X</td>
               <td/>
               <td>X</td>
               <td>X</td>
               <td>X</td>
          </tr>
          <tr>
               <td>1251</td>
               <td>Windows 3.1 Cyrillic</td>
               <td>X</td>
               <td/>
               <td>X</td>
               <td>X</td>
               <td>X</td>
          </tr>
          <tr>
               <td>1252</td>
               <td>Windows 3.1 US (ANSI)</td>
               <td>X</td>
               <td/>
               <td>X</td>
               <td>X</td>
               <td>X</td>
          </tr>
          <tr>
               <td>1253</td>
               <td>Windows 3.1 Greek</td>
               <td>X</td>
               <td/>
               <td>X</td>
               <td>X</td>
               <td>X</td>
          </tr>
          <tr>
               <td>1254</td>
               <td>Windows 3.1 Turkish</td>
               <td>X</td>
               <td/>
               <td>X</td>
               <td>X</td>
               <td>X</td>
          </tr>
          <tr>
               <td>1255</td>
               <td>Hebrew</td>
               <td>X</td>
               <td/>
               <td/>
               <td/>
               <td>X</td>
          </tr>
          <tr>
               <td>1256</td>
               <td>Arabic</td>
               <td>X</td>
               <td/>
               <td/>
               <td/>
               <td>X</td>
          </tr>
          <tr>
               <td>1257</td>
               <td>Baltic</td>
               <td>X</td>
               <td/>
               <td/>
               <td/>
               <td>X</td>
          </tr>
          <tr>
               <td>1361</td>
               <td>Korean (Johab)</td>
               <td>X</td>
               <td/>
               <td/>
               <td>**</td>
               <td>X</td>
          </tr>
     </tbody>
     <tbody>
          <tr>
               <td>437</td>
               <td>MS-DOS United States</td>
               <td/>
               <td>X</td>
               <td>X</td>
               <td>X</td>
               <td>X</td>
          </tr>
          <tr>
               <td>708</td>
               <td>Arabic (ASMO 708)</td>
               <td/>
               <td>X</td>
               <td/>
               <td/>
               <td>X</td>
          </tr>
          <tr>
               <td>709</td>
               <td>Arabic (ASMO 449+, BCON V4)</td>
               <td/>
               <td>X</td>
               <td/>
               <td/>
               <td>X</td>
          </tr>
          <tr>
               <td>710</td>
               <td>Arabic (Transparent Arabic)</td>
               <td/>
               <td>X</td>
               <td/>
               <td/>
               <td>X</td>
          </tr>
          <tr>
               <td>720</td>
               <td>Arabic (Transparent ASMO)</td>
               <td/>
               <td>X</td>
               <td/>
               <td/>
               <td>X</td>
          </tr>
     </tbody>
</table>