td

Purpose

Container for table data.

Note:

The use of the pane attribute is deprecated.

Contained by

Attribute groups

Attributes

Attribute Description Type Default Options Use
align The horizontal alignment of the content xs:string none  left, center, right, justify  deprecated 
bgcolor The background color xs:string     deprecated 
colspan The number of columns spanned by the cell xs:positiveInteger none    optional 
height The height of the cell xs:string none    deprecated 
width The width of the cell xs:string none    deprecated 
nowrap If 'true' is used, the cell content does not wrap xs:string none  true, false  deprecated 
rowspan The number of rows spanned by the cell xs:positiveInteger none    optional 
valign The vertical alignment of the content xs:string none  top, middle, bottom, baseline  deprecated 

Example

The welcome.mlyt layout can be found in the MCS/repository/xml-repository directory.

<?xml version="1.0" encoding="UTF-8"?>
<canvas layoutName="/welcome.mlyt" pageTitle="table">
  <pane name="background">
    <table cols="2">
      <thead>
        <tr>
          <th>Attribute</th>
          <th>Description</th>
        </tr>
      </thead>
      <tfoot>
        <tr>
          <th>Attribute</th>
          <th>Description</th>
        </tr>
      </tfoot>
      <tbody keepTogether="true">
        <tr>
          <td>layoutName</td>
          <td>Name of the layout to use</td>
        </tr>
      </tbody>
    </table>
  </pane>
</canvas>

Related topics