# <tfoot>

Groups a table's footer rows, such as a total, as in HTML.

Category: Display.

```ham
<table>
    <tr>
        <th>Item</th>
        <th>Price</th>
    </tr>
    <tr>
        <td>Margherita</td>
        <td>$12.00</td>
    </tr>
    <tr>
        <td>Tiramisu</td>
        <td>$7.50</td>
    </tr>
    <tfoot>
        <tr>
            <td>Total</td>
            <td>$19.50</td>
        </tr>
    </tfoot>
</table>
```

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