Back to Docs

<mark>

Description

The <mark> HTML element represents text which is marked or highlighted for reference or notation purposes, due to the marked passage's relevance or importance in the enclosing context. It carries semantic weight indicating "relevance" (e.g. search term matches), unlike a generic <span> with CSS styles.

Code Snippet

<p>
    HTML is a <mark>very important</mark> skill for web developers.
</p>

Static Live Preview

localhost/mark-static.html

HTML is a very important skill for web developers.

Interactive Playground

localhost/mark-interactive.html