The Highlight feature marks a part of the text that is relevant in another context.

UI / UX

  • UI: ON/OFF feature, usually represented as a switch button with the “Highlight” icon
  • Title: “Highlight”
  • Keystroke: —

HTML Markup

The <mark> element MUST be used to represent the Highglight feature as it is intended to mark parts of content that are relevant in another contexts[1].

Example:

<p>Find results:</p>
<p>Your <mark>code</mark> is beautiful.</p>

Notes

Highlight feature MAY be used as a mechanism to mark content in the editor found by “Find” or similar feature.

References

  1. The <mark> element definition in the HTML5 standard.