Table Cells

Use the td element to create cells for each column in a table row.


  • The td element can contain any general block content.

  • The td element can occur in a tr element.

  • The style attribute takes a space-separated list of style hints. Processing tools should adjust their behavior according to those style hints they understand.

  • The colspan attribute allows a table cell to span across multiple table columns.

  • The rowspan attribute allows a table cell to span across multiple table rows.

  • The td element can have attributes from external namespaces. See External Namespaces for more information on external-namespace attributes.


See Examples on the page Tables.

Processing Expectations

Comparison to Other Formats


The formal definition of the Mallard language is maintained in RELAX NG Compact Syntax in code blocks within this specification. This is the formal definition for the td element. The namespace declarations for this definition are on the page Pages.

mal_table_td = element td {
  mal_table_td_content *
mal_table_td_attr = (
  attribute style { xsd:NMTOKENS } ?,
  attribute rowspan { text } ?,
  attribute colspan { text } ?,
  mal_attr_external *
mal_table_td_content = mal_block