Document structure

Section

Block-level section wrapper with explicit optional page-break intent before or after the section.

Elementef-print-section
CapabilityP0 portable
Maturityimplemented
Pagination ownerBrowser / selected renderer

Capability note. A requested break is pagination intent, not a guarantee that every renderer will produce identical physical pagination.

Example 1

Ordinary body section

Use semantic headings inside the print section rather than replacing document 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-document>
  <ef-print-section>
    <p class="folio-kicker">01 / Context</p>
    <h1>Executive summary</h1>
    <p>Folio owns reusable print presentation; the application owns the report's meaning and content.</p>
  </ef-print-section>
</ef-print-document>
Example 2

Start on a new page

The break-before attribute maps to native CSS page fragmentation.

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>
  <p>Previous section content ends here.</p>
  <ef-print-section break-before="page">
    <p class="folio-kicker">Appendix A</p>
    <h1>Detailed evidence</h1>
    <p>This section requests a new physical page before it.</p>
  </ef-print-section>
</ef-print-document>
Example 3

End with a page break

Useful when the following content must begin on a fresh page.

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-section break-after="page">
    <p class="folio-kicker">Terms</p>
    <h1>Agreement terms</h1>
    <p>The section requests a page break after this content.</p>
  </ef-print-section>
  <h2>Signature page</h2>
  <p>The next content begins after the requested break.</p>
</ef-print-document>