# <caption>

A table caption, shown as a label above the table.

Category: Display.

```ham
<table>
    <caption>Opening hours</caption>
    <tr>
        <th>Day</th>
        <th>Hours</th>
    </tr>
    <tr>
        <td>Weekdays</td>
        <td>8:00 to 18:00</td>
    </tr>
    <tr>
        <td>Saturday</td>
        <td>9:00 to 13:00</td>
    </tr>
</table>
```

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/caption-light.webp), [dark](https://hypeapps.dev/img/tags/caption-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

- [`<table>`](https://hypeapps.dev/docs/reference/table.md): A data table written in HTML: tr rows of td cells, with a row of th cells as the header.
- [`<tr>`](https://hypeapps.dev/docs/reference/tr.md): One row of an HTML table, holding a td cell for each column.
- [`<th>`](https://hypeapps.dev/docs/reference/th.md): A header cell of an HTML table; a row of them becomes the column headings.
- [`<td>`](https://hypeapps.dev/docs/reference/td.md): One cell of an HTML table row.
- [`<ad>`](https://hypeapps.dev/docs/reference/ad.md): An ad slot in the page, filled with a banner from AdMob in a built app.
- [`<avatar>`](https://hypeapps.dev/docs/reference/avatar.md): A round avatar from a photo, initials or an icon, in any size and color.
- [`<badge>`](https://hypeapps.dev/docs/reference/badge.md): A small count or dot pinned to the corner of an icon or any other element.
- [`<canvas-tool>`](https://hypeapps.dev/docs/reference/canvas-tool.md): A drawing tool written in HAM and loaded into a draw pad as a plugin: touch handlers, state and options.

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