HTML mark Tag

HTML <mark>Tag: The HTML<mark>tag highlights content that is required for an user. It is used to highlight the part of the text in the paragraph. The HTML mark tag is new in HTML5.

HTML <mark>Tag

This HTML mark tag supports both the global and the event attributes.

Syntax: <mark> Text </mark>



Browser compatibility

The HTML<mark>tag is supported by different types of browsers.

  • Chrome-6.0
  • Firefox-4.0
  • Opera-11.1
  • Safari-5.0
  • Internet Explorer-9.0

Example:

<!DOCTYPE html>
<html>
<body>
<p>C is introduced by <mark>DENNIS RITCHIE</mark> .</p>
</body>
</html>

Output:

HTML mark tag