Name

mark — HTML5

Synopsis

<mark> . . . </mark>

Represents a selection of text that has been marked or highlighted for reference purposes or to bring it to the attention of the reader. Marked text is considered to be of particular relevance to the user.

Notes

HTML5 only.

Start/End Tags

Required/Required

Attributes

HTML5 Global Attributes

Example

In this example, a user’s search query (“estate tax”) is marked in the returned document:

<p> ... PART I. ADMINISTRATION OF THE GOVERNMENT. TITLE IX.
TAXATION. CHAPTER 65C. MASS. <mark>ESTATE TAX</mark>.
Chapter 65C: Sect. 2. Computation of <mark>estate 
tax</mark>.</p>

Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.