1. Reference
  2. Layout

<section>

A block-level semantic container for one part of a page; <article> is the same tag.

Layout

This tag has more than one name. Every spelling is the same tag, so write whichever feels natural. Pick one and every example on this page uses it.

section.ham
<section style="p-16 rounded-xl border border-gray-300 dark:border-gray-700 gap-8">
    <h3>Opening hours</h3>
    <text>Monday to Friday, 8:00 to 18:00</text>
    <text style="muted">Closed on public holidays</text>
</section>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.

This page is also Markdown, and all of HAM is in llms.txt.