Structured data

Table

A responsive screen container and print contract for native semantic tables, including repeated-header intent, row break avoidance, wrapping, and numeric alignment.

Elementef-print-table
CapabilityP0 portable · named-page behavior renderer-sensitive
Maturityexperiment-backed
Pagination ownerBrowser / selected renderer

Capability note. Very wide tables still need an authored strategy such as a landscape named page. Folio will not shrink text to illegibility.

Example 1

Data table

Keep caption, thead, tbody, th, and td as native table semantics.

Open standalone print preview

On narrow screens the embedded example uses a screen-only inspection layout. Printing and the standalone document keep Folio's physical print rules.

View HTML
<ef-print-table>
  <table>
    <caption>Quarterly results</caption>
    <thead><tr><th>Quarter</th><th data-align='number'>Revenue</th></tr></thead>
    <tbody><tr><td>Q1</td><td data-align='number'>$125,000</td></tr><tr><td>Q2</td><td data-align='number'>$148,000</td></tr></tbody>
  </table>
</ef-print-table>
Example 2

Long text cells

Cells wrap rather than clipping or forcing unreadably small type.

Open standalone print preview

On narrow screens the embedded example uses a screen-only inspection layout. Printing and the standalone document keep Folio's physical print rules.

View HTML
<ef-print-table>
  <table>
    <thead><tr><th>Finding</th><th>Interpretation</th></tr></thead>
    <tbody><tr><td>Renderer variation</td><td>Physical pagination can change with fonts, browser version, page size, and content.</td></tr></tbody>
  </table>
</ef-print-table>
Example 3

Wide comparison

On narrow screens the wrapper contains horizontal scrolling; print keeps the actual table available for an authored page strategy.

Open standalone print preview

On narrow screens the embedded example uses a screen-only inspection layout. Printing and the standalone document keep Folio's physical print rules.

View HTML
<ef-print-table style='--ef-print-table-screen-min-width:42rem'>
  <table>
    <thead><tr><th>Renderer</th><th>Margins</th><th>Counters</th><th>Footnotes</th><th>Bleed</th></tr></thead>
    <tbody><tr><td>Portable browser</td><td>Basic</td><td>Varies</td><td>No guarantee</td><td>No guarantee</td></tr></tbody>
  </table>
</ef-print-table>