Mark Tag in HTML5

In this article I am going to describe about the implementation and use of Mark Tag in HTML5.
  • 1537

Mark Tag

The <mark> tag defines marked text. This tag is used to highlight the text in the html document.

We can mark the text using many properties from global attributes of html5 e.g. by changing font ,background color ,font color etc. This tag must have opening and closing <mark> tag.

<mark> tag is new in HTML5.

Browser Support

<mark> tag is supported in Internet Explorer 9, Firefox, Opera, Chrome and Safari.

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


<mark>Your Text Here</mark>

Example Of mark Tag in HTML5

<!DOCTYPE html>


<html lang="en" xmlns="">


    <meta charset="utf-8" />

    <title>Example of Mark Tag </title>



    <h2>&lt;mark&gt; Tag in HTML5</h2>

    The discount on Electronic Items is<mark style="background-color: red;"> 20% </mark>not 10%.





© 2020 DotNetHeaven. All rights reserved.