Welcome to HTML5-Tutorials

Our site offers a lot of HTML5 learning from absolutely beginning to advanced level.If you want to make a website with HTML,this site will completely guide you a lot.So learn HTML5 syntax and form of coding easily with this website.If you have any doubt,leave a message on us.We will return you so soon.This site includes innumerable number of references you need to do after studying their corresponding elements.

In this page,we will learn about HTML <mark> tag.

Use of <mark> tag

The <mark> tag is used to make the texts with highlighted color on background.
The texts contain within <mark> and </mark> will be just like this.
You see that that by default, the texts are black in color with background yellow.

Display:Inline

Example of <mark> tag

    <mark> Mark texts </mark>

Supported Browsers.

Tag
<mark> Yes Yes Yes Yes Yes

Full Code Example

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h4> This is Normal Heading. </h4>
<h4> <mark> This is Highlighted Heading. </mark> </h4>
</body>
</html>

Output

This is Normal Heading.

This is Highlighted Heading.

More Reference


The <mark> element is new in HTML5.
Use <mark> element only to the important texts or sentence what you want to draw attention on that.

Default CSS properties of <mark> tag

mark {
   background-color:yellow;
   color:black;
}