Advertisement

HTML <mark> tag

Examples

Highlight parts of the text:

<p>Do not forget to buy <mark>milk</mark> today.</p>

Try it yourself

Browser Support

IE Firefox Chrome Safari Opera

Internet Explorer 9+, Firefox, Opera, Chrome and Safari support <mark> tag.

Note: 8 and earlier versions of Internet Explorer do not support the <mark> tag.

Definition and Usage

<Mark> mark text labels with definitions. Please use <m> tag when you need to highlight text.

HTML 4.01 and HTML 5 differences between

<Mark> tag is new in HTML 5 tag.

Global Properties

<mark> tag supports HTML in the global properties .

Event Properties

<mark> tag supports HTML in the event properties .