HTML <mark> tag
- closing tag
- required
- void element
- no
- lives inside
- inline, inside text
- typically holds
- highlighted text
Where it goes
Around the highlighted phrase, inside a line.
Example
Results for "cat": a sleeping <mark>cat</mark> photo.Open this example in the editor →
Common mistakes
- Using it as a general yellow-background tool with nothing actually being highlighted.
- Mixing it up with <strong>. <mark> says "this is what you were looking for right now." <strong> says "this matters in general."
- Highlighting so much that the highlight stops meaning anything. It works because it is rare.