1. Reference
  2. Forms and input

<data-table>

A table of rows and columns with a header; the HTML table tags write the same table.

Forms and input
data-table.ham
<data-table>
    <data-column>Item</data-column>
    <data-column>Price</data-column>
    <data-row>
        <data-cell>Flat white</data-cell>
        <data-cell>$4.20</data-cell>
    </data-row>
    <data-row>
        <data-cell>Almond croissant</data-cell>
        <data-cell>$3.80</data-cell>
    </data-row>
</data-table>
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.