Skip to content

Element Reference

All Press elements.

Structure Elements

ElementDescriptionValid Children
<press>Root elementdocument, pages, flows, components, styles, data, assets
<document>Page sequence definitionPage references, repeat
<pages>Page definitions containerNamed page definitions
<page>Page definitionAny block elements, flow references
<flows>Flow definitions containerNamed flows, group
<group>Flow group containerNamed flows
<components>Component definitionsNamed component definitions
<styles>Style rules containerTag-name rules, alias
<data>Data container (JSON, CSV, or XML)Structured data
<assets>Asset definitionsfonts, colors, images, data

Layout Elements

ElementDescriptionValid Children
<frame>Layout containerAny block or inline elements

Content Elements

ElementDescriptionContext
<p>ParagraphBlock
<h1> - <h6>Headings (auto-added to "headings" outline)Block
<blockquote>Block quotationBlock
<pre>Preformatted text (preserves whitespace)Block
<hr>Horizontal ruleBlock

Inline Elements

ElementDescription
<span>Inline text styling container
<b> / <strong>Bold text
<i> / <em>Italic text
<u>Underlined text
<s>Strikethrough text
<sup>Superscript
<sub>Subscript
<code>Monospace/code text
<br>Line break
<a>Hyperlink (href attribute)

Table Elements

ElementDescriptionValid Children
<table>Table containertr, thead, tbody
<thead>Table header grouptr
<tbody>Table body grouptr
<tr>Table rowtd, th
<td>Table data cellAny block or inline elements
<th>Table header cell (bold, centred)Any block or inline elements

List Elements

ElementDescriptionValid Children
<ul>Unordered listli
<ol>Ordered listli
<li>List itemAny block or inline elements, nested ul/ol

Media Elements

ElementDescriptionKey Attributes
<img>Imagesrc, width, height, max-width, max-height, transparency
<qr-code>QR code generatordata, width, height
<visualization>Chart containerdata, width, height
<x-donut>Donut/pie chartstroke, width, height
<line-plot>Line graphdata, width, height

Flow and Repeat Elements

ElementDescriptionKey Attributes
<flow>Flow reference (in pages) or flow definition (in flows)name, type, deferred
<repeat>Iteration directivedata, item, flow, group, outline
<show-if>Conditional wrappercondition
<frame-break>Force a page/frame break--

Reference Elements

ElementDescriptionKey Attributes
<ref>Display referenced element's textid
<page-number>Display page numberid (optional: target element)
<total-pages>Display total page count--

Counter Elements

ElementDescriptionKey Attributes
<counter-define>Define/set a named countername
<counter-value>Increase and display current counter valuename

Style Elements (inside <styles>)

ElementDescriptionKey Attributes
<alias>Named style bundlename
<child>Child element targeting rulename

Components

ElementDescriptionKey Attributes
<slot>Component content placeholder--