Latest web development tutorials

HTML5 <mark> tag

Examples

Part of the text is highlighted:

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

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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

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


Tag definitions and instructions

<Mark> mark text labels with definitions.

Use the <mark> tag when you need to highlight text.


Differences between HTML 4.01 and HTML5

<Mark> is the new HTML5 tags.


Global Properties

<mark> tag supports the global attributes, view complete the property sheet HTML Global Attributes .


Event Properties

<mark> tag supports all HTML event attributes .