mark

FilterElements

<mark> ... </mark>

HTML5 only. 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.

Start/End Tags

Required/Required

Specifications

  • HTML5

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>

Rendered Example


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

mark has no default rendering. In this example, a style rule sets the background color of the element to yellow (background-color: yellow)