Publication recipe

Caption

Caption for figures, tables, listings, or a table's trailing notes: an emphasized [data-label] (Figure 2., Table 1.), caption text, and block [data-note] and [data-source] lines.

Recipe.ef-caption
CapabilityP0 portable
Maturityfixture-backed
Pagination ownerBrowser / selected renderer

Contract note. Labels and numbers are authored text; Folio never numbers objects. On a named page in Chromium 141, a <caption> on a header-repeating table can be stranded; label such tables with a preceding .ef-caption paragraph and aria-labelledby.

Example 1

Figure caption with source

Label, description, and attribution.

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-document>
  <ef-print-figure>
    <figure id="fig-1">
      <svg viewBox="0 0 200 60" role="img" aria-label="Three bars of increasing height"><rect x="10" y="40" width="40" height="20"/><rect x="80" y="25" width="40" height="35"/><rect x="150" y="5" width="40" height="55"/></svg>
      <figcaption class="ef-caption"><span data-label>Figure 1.</span> Cooling rate by canopy tertile. <span data-source>Source: authors' sensor network.</span></figcaption>
    </figure>
  </ef-print-figure>
</ef-print-document>
Example 2

Table caption and notes

Caption above, notes below the table.

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-document>
  <ef-print-table>
    <table>
      <caption class="ef-caption"><span data-label>Table 1.</span> Mean insects per recording.</caption>
      <thead><tr><th scope="col">Order</th><th scope="col" data-align="number">Before</th><th scope="col" data-align="number">After</th></tr></thead>
      <tbody><tr><th scope="row">Moths</th><td data-align="number">7.1</td><td data-align="number">4.6</td></tr></tbody>
    </table>
    <p class="ef-caption"><span data-note>Note: twelve nights per summer.</span></p>
  </ef-print-table>
</ef-print-document>
Example 3

Named-page table label

The Chromium-safe pattern for tables on landscape or per-article named pages.

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-document>
  <ef-print-table>
    <p id="tab-a1-label" class="ef-caption"><span data-label>Table A1.</span> Sensor intercalibration offsets.</p>
    <table aria-labelledby="tab-a1-label">
      <thead><tr><th scope="col">Sensor</th><th scope="col" data-align="number">Offset</th></tr></thead>
      <tbody><tr><th scope="row">HG-S01</th><td data-align="number">−0.24</td></tr></tbody>
    </table>
  </ef-print-table>
</ef-print-document>