# <section>

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

Category: Layout. Also written `<article>`.

```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>
```

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/section-light.webp), [dark](https://hypeapps.dev/img/tags/section-dark.webp).

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.

## Related tags

- [`<h3>`](https://hypeapps.dev/docs/reference/h3.md): A third-level heading: 24 px bold text for a subsection.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<address>`](https://hypeapps.dev/docs/reference/address.md): Contact details as a block, in italic by default, as HTML's address element.
- [`<aside>`](https://hypeapps.dev/docs/reference/aside.md): A side note set apart from the main text, as HTML's aside element; it works like a block.
- [`<background>`](https://hypeapps.dev/docs/reference/background.md): The layer a swiped dismissible row reveals behind it, such as a red delete strip.
- [`<block>`](https://hypeapps.dev/docs/reference/block.md): The general-purpose container: groups children and gives them padding, color, corners and a border.
- [`<card>`](https://hypeapps.dev/docs/reference/card.md): A surface for grouped content, with padding, rounded corners and a soft shadow.
- [`<center>`](https://hypeapps.dev/docs/reference/center.md): Centers its children and their lines of text, on both axes or only one.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
