1. Reference
  2. Text

<samp>

Inline code in a monospace font on a gray background, flowing with the text around it.

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.

samp.ham
<column style="gap-8">
    <p>Use the <samp>print()</samp> function to log a value.</p>
    <p>
        Press <samp>Ctrl</samp> + <samp>S</samp> to save.
    </p>
</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.