HTML mark Tag

HTML <mark> tag is employed to emphasize specific text within another element, like a paragraph, for the purpose of reference or notation.

This is a recently included tag that was introduced in HTML5.

In many web browsers, text enclosed within the <mark> tag displays with a yellow background by default, although this appearance can be customized through the CSS background-color property.

Syntax:

Example

<mark>write your content here....</mark>

Following are some details regarding the HTML <mark> tag:

Display Inline
Start tag/End tag Both Start and End tag
Usage Semantic and textual

Example

Example

<!DOCTYPE html>

<html>

<head>

	<title>Mark Tag</title>

</head>

<body>

 <h2>Exmaple of Mark Tag</h2>

 <p>You can easily learn designing a website with our <mark>Web designing tutorial. </mark></p>

</html>

Output:

Attribute:

Global attribute:

The <mark > tag facilitates the utilization of universal attributes in HTML.

Event attribute:

The <mark> element facilitates the event attributes in HTML.

Supporting Browsers

Element Chrome IE Firefox Opera Safari
<mark> Yes Yes Yes Yes Yes

Input Required

This code uses input(). Please provide values below: