Table header

A simple table header is an optional header row for a simple table.

Syntax

The syntax for representing this component varies depending on the authoring format:

Authoring format Syntax and example
XDITA

<sthead>

<sthead>
  <stentry><p>Ingredient</stentry>
  <stentry><p>Amount</p></stentry>
  <stentry><p>Unit shipped</p></stentry>
</sthead>
HDITA

<th>

<tr>
  <th><p>Ingredient</p></th>
  <th><p>Amount</p></th>
  <th><p>Unit shipped</p></th>
</tr>
MDITA The header row should be separated from the body of the table by a delimiter row. The delimiter row contains hyphens (-).
| Ingredient       | Amount   | Unit shipped |
| ---------------- | -------- | ------------ |
| Gohan rice       | 140 gm   | 14 kg        |
| Soya paper sheet | 1 pc     | 10 pc        |

Table:  Fancy roll ingredients

Attributes

The available attributes vary based on the authoring format:

XDITA and HDITA
The following attributes are available on this element: ID attributes, localization attributes, universal attributes, and @props.
MDITA
There is no attribute support for the MDITA core profile. For the MDITA extended profile, attributes can be specified by using the HDITA representation.

Examples

See Figure 1, Figure 2, and Figure 3.