`

The mark tag in HTML5

Introduction: The <mark> tag is used to mark selected text. This is same as the highlighter pen. So if we need to mark some text in our page, then we use this tag. Its syntax is given below.

<mark> text to be marked </mark>


Now we use this tag. We write the following code

<!DOCTYPE HTML>
<html>
<body>
<p>I am working on c,c#,ASP.Net,ADO.Net,<mark>HTML5</mark> and PHP.</p>
</body>
</html>

Run the code. We note that the text which is between <mark> and </mark> tag is displayed in yellow color. The output will look like as below figure

mark tag in html5

Ebook Download
View all
Learn
View all