cellType

cellType controls the semantic HTML tag used by renderers for a cell.

Values

  • header: Render as a table header cell (<th>).

  • data (default): Render as a standard data cell (<td>).

Syntax

Add cellType inside curly braces on the cell you want to affect.

STL
Plan A{cellType="header"} | $10 Plan B | $20

Notes

  • In the [header] section, cells are already rendered as <th>. The parser ignores cellType there to keep STL clean.

  • If cellType is omitted, renderers default to <td>.

Full Example

STL
#table cols: 2 [header] Plan | Price [body] Plan A{cellType="header"} | $10 Plan B{cellType="header"} | $20 #endtable
Sanity Table LogoStructured Tables
Fast, free and open source.
Write in STL (Structured Table Language), render anywhere.

Open Source under MIT License