HTML elements
htmlbag recognises a curated subset of HTML. Unlisted tags are still parsed by the underlying HTML5 parser; their content passes through as text, but no special semantics apply.
Block-level elements
These trigger vertical mode (each element starts on a new line and may carry margin/padding/border):
<address>, <article>, <aside>, <blockquote>, <body>,
<canvas>, <col>, <colgroup>, <dd>, <div>, <dl>, <dt>,
<fieldset>, <figcaption>, <figure>, <footer>, <form>,
<h1>–<h6>, <header>, <hr>, <li>, <main>, <nav>,
<noscript>, <ol>, <p>, <pre>, <section>, <table>, <tbody>,
<td>, <tfoot>, <th>, <thead>, <tr>, <ul>, <video>.
Inline-level elements
These flow inside a paragraph:
<a>, <abbr>, <acronym>, <b>, <barcode>, <bdo>, <big>,
<button>, <cite>, <code>, <dfn>, <em>, <i>, <img>,
<input>, <kbd>, <label>, <map>, <object>, <q>, <samp>,
<script>, <select>, <small>, <span>, <strong>, <sub>,
<sup>, <textarea>, <tt>, <var>.
Custom elements
<fn>— footnote anchor. Equivalent to any element withclass="footnote". Lifted out of the body flow into the page’s footnote stack with an automatic running number. See inserts.<barcode>— render a barcode at this position; void element.
Floats — by CSS, not by tag
Floats are not a tag in htmlbag. Any element with the CSS property
float: top | before | bottom | after is treated as a float marker;
the element’s content is lifted into the page’s top or bottom stack.
See inserts for details.
Headings
<h1>–<h6> are tracked as document-level headings; their text and
final page numbers are exposed on CSSBuilder.Headings for table-of-
contents generation.