1. Reference
  2. Text

<mark>

Highlighted text with a background color, like a marker pen over a phrase.

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.

mark.ham
<p>
    Your order ships <mark style="text-gray-900">tomorrow before noon</mark> by courier.
</p>
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
color Highlight background color
color
yellow-300

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.