td

Purpose

A cell in a table containing data.

Contained by

Attributes

Attribute Description Type Default Options Use
colspan The number of columns spanned by a cell. xs:positiveInteger     optional 
rowspan The number of rows spanned by a cell. xs:positiveInteger     optional 

Attribute groups

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2">
  <head>
    <title>table</title>
  </head>
  <body>
    <table>
      <caption>table</caption>
      <tr>
        <th rowspan="2">header</th>
      </tr>
      <tr>
        <td>row1column1</td>
        <td>row1column2</td>
      </tr>
      <tr>
        <td>row2column1</td>
        <td>row2column2</td>
      </tr>
    </table>
  </body>
</html>

Related topics