Contact Number
Email Address

mark

mark

HTML <mark> Tag

Definition and Usage

The <mark> tag defines marked text. Use the <mark> tag if you want to highlight parts of your text. The HTML <mark> element represents highlighted text, i.e., a run of text marked for reference purpose, due to its relevance in a particular context. For example it can be used in a page showing search results to highlight every instance of the searched-for word. The HTML mark element can be used in one or more of the following scenarios
  • Highlighting text to show emphasis
  • Highlighting search terms in search results to provide context.
  • Distinguishing new content added by user by showing it differently.
The "mark" element is a type of phrasing content element. Any phrasing element can be the parent of a "mark" element, and all global attributes are permitted. Unlike a few other phrasing elements, "mark" element must have both a start tag as well as an end tag.  Mark element supports the following default display properties:
  1. Background-color - Which defines the color of the background, default is yellow
  2. Color: which defines the color of the text, default is black.
Syntax <mark> </mark>