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.
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.
|All versions||9.0+||4.0+||All versions||11.1+||All versions|