Easy Tutorial
❮ Tag Strong Html Forms ❯

HTML5 <mark> Tag

Example

Highlighting parts of the text:


Browser Support

Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the <mark> tag.

Note: Internet Explorer 8 and earlier versions do not support the <mark> tag.


Tag Definition and Usage

The <mark> tag defines marked text.

Use the <mark> tag when you need to highlight text.


Differences Between HTML 4.01 and HTML5

<mark> is a new tag in HTML5.


Global Attributes

The <mark> tag supports global attributes. See the complete list of attributes in HTML Global Attributes.


Event Attributes

The <mark> tag supports all HTML Event Attributes.

❮ Tag Strong Html Forms ❯