The mark tag in HTML5

Here, we will learn about use of 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

<p>I am working on c,c#,ASP.Net,ADO.Net,<mark>HTML5</mark> and PHP.</p>

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