We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

<mark> Redirect 1

Introduced in HTML5


The HTML <mark> Element represents highlighted text, i.e., a run of text marked for reference purpose, due to its relevance in a particular context. For example it can be used in a page showing search results to highlight every instance of the searched for word.

Usage notes:

  • In a quotation or another block, the highlighted text typically marks text that is referenced outside the quote, or marked for specific scrutiny even though the original author didn't consider it important.
  • In the main text, the highlighted text typically marks text that may be of special relevance for the user's current activity, like search results.
  • Do not use the <mark> element for syntax highlighting; use the <span> element for this purpose.
  • Do not confuse the <mark> element with the <strong> element. The <strong> element is used to denote spans of text of special importance, when the <mark> element is used to denote spans of text of special relevance.


This element only includes the global attributes.


<p>The &lt;mark&gt; element is used to <mark>highlight</mark> text</p> 


The <mark> element is used to highlight text


Specification Status Comment
WHATWG HTML Living Standard Living Standard  
HTML5 Candidate Recommendation  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 4.0 (2.0) 9.0 11.0 (Yes)
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 4.0 (2.0) ? ? ?

See also

Document Tags and Contributors

Last updated by: Sheppy,