HTML5 mark Tag

If you want to highlight a text, then use the HTML5 <mark> tag. The highlighted text will allow readers to understand the relevance of the highlighted word/words in a particular context.

Always remember, do not use the <mark> tag for syntax highlighting. Also, the <mark> tag isn’t the <b> or <strong> tag.

Example

Here’s the output, which shows the words highlighted using the HTML5 <mark> element,

HTML5 Mark Tag

HTML5 main Tag
HTML5 menuitem Tag
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading