1.

Explain the practical usage of <mark> Tag of Html

Answer»

<P>This <mark> ELEMENT is fused to highlight or draw attention without changing its IMPORTANCE or emphasis. The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in ANOTHER context. Below are the different use cases.

  • Indicating a searched-for word or phrase in a search results page.
  • Indicating a specific code of interest in a code sample such as a change that’s discussed in the surrounding text.
  • Highlighting part of a QUOTATION that wasn’t emphasized in the original.

Example 

<p>While Remy and Bruce did a masterful job on <mark>&lt;cite&gt;</mark>Introducing HTML5<mark>&lt;/cite&gt;</mark>, I’m not sure about that shade of brown.</p>

While Remy and Bruce did a masterful job on <cite>Introducing HTML5</cite>, I’m not sure about that shade of brown.



Discussion

No Comment Found