HTML5 <mark> Tag

Example

Highlight parts of a text:

<p>Do not forget to buy <mark>milk</mark> today.</p>

Try it yourself »

Definition and Usage

The <mark> tag defines marked text. Use the <mark> tag if you want to highlight parts of your text


Differences Between HTML 4.01 and HTML5

The <mark> tag is new in HTML5


Standard Attributes

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


Event Attributes

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