In other words, we can say that whenever we want to mark or highlight certain portion of text in HTML resource we use the Mark Tag <mark>.
Mark Tag is a closed tag and needs a closing Mark Tag </mark>.
Note: Mark Tag is new in HTML 5.
We Will be looking at:
Syntax of HTML Mark Tag
<mark> Some text .. </mark>
Example of HTML Mark Tag
|HTML Mark Tag Code||Output|
<p> I have to attend a <mark> meeting @ 3 </mark>pm today</p>
|I have to attend a
meeting @ 3 pm today
In the output of the HTML Mark Tag example above we can see that the text “meeting @ 3” within the Mark HTML Tag is being displayed highlighted and that’s the usage of Mark Tag in HTML.
HTML Mark Tag Supporting Browsers
|1||Internet Explorer||Yes (from IE-9 onwards)|