Summary -

In this topic, we described about the <mark> tag along with detailed example.

The <mark> tag was introduced in HTML 5. Highlighted text or marked text. Marked text is used to display the text as highlighted text.

For example, when displaying a paragraph in HTML document and wanted to highlight any quotation middle of the paragraph, <mark> tag will be used.

Marked text uses <mark> tag. Any text in between <mark>..</mark> displays as highlighted text. <mark> element is nested element.

Syntax -

<mark>.. text here.. </mark>

Example -

<!DOCTYPE html>
<html>
	<head>
		<title>Marked text example.. </title>	
	</head>
	<body>
		<p>This is <mark>Marked</mark> text</p>
	</body>
</html>

Output -

This is Marked text.