The < Mark > Element

The <mark> Element is basically used to highlight the text with another background color, which attracts the reader and focus the particular text for the reference using.

There are some attributes of <mark> element:-
accesskey
class
contenteditable
contextmenu
dir
draggable
hidden
id
Lang
Spellcheck
Style
Tabindex
title
Here we will illustrate an example putting the <mark> element in the script:

Code

 

 

 

Output