New in HTML5.

<mark> HTML Tag

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Element of
Learn How Fonts And Web Typography Work In HTML: A Beginner's Guide
What does <mark> HTML Tag do?
The <mark> element is used to highlight text inside of another element such as a paragraph, list, or table. Text to which the <mark> element has been added is considered to be particularly relevant in a specific context.
semantic | textual

Code Example

<p>This is a <mark>new</mark>  element in HTML 5.</p>

This is a new element in HTML 5.

The <mark> element is used to define a section of the content that should be highlighted. By default, most browsers render text within <mark> tags as black text on a yellow background.

Officially, <mark> should be used to emphasize text that was not emphasized in the original content. As such, it is designed to pick out particular sections for the reader’s attention.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for and runs a content agency, Red Robot Media.

Browser Support for mark