<?xml version="1.0" encoding="utf-8"?>

Marked text

Marked text

To make the text look highlighted, use the <mark> tag.[1]The most common use of the <mark> element is to indicate a portion of the document's content that is likely to be relevant to users' current activity. A classic example is words that match the search query.

A more meta example of when to use the <mark> tag would be inside a quotation. Let's say there's a piece of information inside the quote that you found interesting, but the author of the source material didn't emphasize it. Go ahead and highlight it with the <mark> tag to draw users' attention to it!

Improve your UX & Product skills with interactive courses that actually work