HTML <mark> tag

Updated: 10/11/2017 by Computer Hope

HTML mark tagWhen 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 code

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

Example result

Here is how you highlight text on your pages.

Attributes

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.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
9.0+ 4.0+ 5.0+ 11.1+ 6.0+

Related pages

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