1. Reference
  2. Forms and input

<label>

A label above a form field, naming what the field is for.

Forms and input
label.ham
<column style="gap-6 w-full">
    <label>Email address</label>
    <input name="email"
           placeholder="maya@example.com"/>
</column>
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.