# <figcaption>

The caption under a figure's picture, set as its own line of text.

Category: Text.

```ham
<figure style="w-full">
    <img src="https://hypeapps.dev/gallery/assets/city.jpg"
         style="w-full h-200 rounded-xl"
         fit="cover"/>
    <figcaption style="muted text-sm mt-8">Fig. 1: The old town at night, from the harbor wall</figcaption>
</figure>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `style` | Style classes |  |

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

- [`<figure>`](https://hypeapps.dev/docs/reference/figure.md): A self-contained figure: a picture or chart grouped with its caption, as in HTML.
- [`<img>`](https://hypeapps.dev/docs/reference/img.md): Shows a picture from a URL or the app's files, sized and cropped by its style.
- [`<a>`](https://hypeapps.dev/docs/reference/a.md): A link: opens a web address, or a tel:, mailto: or sms: link in the phone's own app.
- [`<abbr>`](https://hypeapps.dev/docs/reference/abbr.md): An abbreviation with a dotted underline; its title shows as a tooltip on hover or long press.
- [`<b>`](https://hypeapps.dev/docs/reference/b.md): Bold text inside a paragraph, as HTML's b and strong.
- [`<blockquote>`](https://hypeapps.dev/docs/reference/blockquote.md): A quoted passage with an accent bar on the left, set apart from the text around it.
- [`<br>`](https://hypeapps.dev/docs/reference/br.md): A line break between pieces of text.
- [`<code>`](https://hypeapps.dev/docs/reference/code.md): Inline code in a monospace font on a gray background, flowing with the text around it.

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