Mark tag

<mark>

Explanation

Mark tag is used to highlight a particular word in a content.
By default the text will be highlighted in "Yellow" color.
Content<mark>Text</mark>

Example Code:

Result :

Coimbatore is also known as Kovai
  • Use this tag to differentiate a text from rest of the content
  • "CSS" Style can be used to change the default "Yellow" color to any other color.
  • The highlighted text will attract the person who ever views the content.
It is newly introduced in HTML5. It does not exist in previous versions of HTML.
It supports both Global Attributes and Event Attributes in HTML5.

Limitations:

It will function in all browsers except Internet Explorer 8.0 and its previous versions.

Ask Questions

Ask Question