Highlight parts of a text:
The <mark> tag defines marked text.
Use the <mark> tag if you want to highlight parts of your text.
The numbers in the table specify the first browser version that fully supports the element.
Element | |||||
---|---|---|---|---|---|
<mark> | 6.0 | 9.0 | 4.0 | 5.0 | 11.1 |
The <mark> tag is new in HTML5.
The <mark> tag also supports the Global Attributes in HTML.
The <mark> tag also supports the Event Attributes in HTML.
HTML tutorial: HTML Text Formatting
HTML DOM reference: Mark Object
Most browsers will display the <mark> element with the following default values: