1. Reference
  2. Text

<link>

A link: opens a web address, or a tel:, mailto: or sms: link in the phone's own app.

Text

This tag has more than one name. Every spelling is the same tag, so write whichever feels natural. Pick one and every example on this page uses it.

link.ham
<column style="gap-12">
    <p>
        Read the <link href="https://hypeapps.dev/terms">terms of service</link> before you sign up.
    </p>
    <link href="tel:+15555550100">Call the front desk</link>
    <link href="https://hypeapps.dev/join"
          style="bg-teal-700 text-white px-16 py-8 rounded-full">Join the club</link>
</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.

Attributes

NameWhat it doesDefault
href URL (http://, https://, file:/, or internal path)
string

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.