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>
		<title>Marked text example.. </title>	
		<p>This is <mark>Marked</mark> text</p>

Output -

This is Marked text.