Description

The <mark> element defines a marked section of text. You can use this tag if you want to highlight a section of your text for reference purposes.

The following table summarizes the usages context and the version history of this tag.

Placement:Inline
Content:Inline and text
Start/ End Tag:Start tag: required, End tag: required
Version:HTML 5

Syntax

The basic syntax of the <mark> tag is given with:

HTML/XHTML: <mark> ... </mark>

The example below shows the <mark> tag in action.

<p>This is some <mark>highlighted</mark> text.</p>
<p>Here are <mark>some more highlighted</mark> text.</p>

Tag-Specific Attributes

The <mark> tag doesn't have any specific attribute.

Global Attributes

Like all other HTML tags, the <mark> tag supports the glodelal Attributes in HTML5.

Event Attributes

The <mark> tag also supports the event Attributes in HTML5.

Browser Compatibility

Element
<mark>YesYesYesYesYes