Highlight HTML content for reference purposes

HTMLWeb DevelopmentFront End Technology

Use the <mark> tag to highlight HTML content. The HTML <mark> tag specifies a text highlighted for reference purposes that is for its relevance in another context.

Example

You can try to run the following code to highlight HTML content for reference purposes −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Mark Tag</title>
   </head>
   <body>
      <h2>Cricketers in India</h2>
      <p>Sachin Tendulkar is <mark>god</mark> of cricket.</p>
   </body>
</html>
raja
Published on 13-Mar-2018 12:30:11
Advertisements