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.
- Background-color - Which defines the color of the background, default is yellow
- Color: which defines the color of the text, default is black.