HTML <mark> tag

Updated: 11/13/2018 by Computer Hope
HTML mark tag

When writing in HTML, the <mark> tag is an inline element used to highlight a section of text. It is useful in many instances. For example, you could use it to mark text that may be of special relevance to a visitor, like results of a recent search. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Example of <mark> code

Here is how you <mark>highlight text</mark> on your pages.

Example result

Here is how you highlight text on your pages.


Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <mark> tag does not have any unique attributes, it does utilize all of the standard attributes.


Edge Internet Explorer Firefox Safari Opera Chrome
All versions 9.0+ 4.0+ All versions 11.1+ All versions

Browser, Compatibility, HTML em tag, HTML strong tag, Web design terms