Computer >> Computer tutorials >  >> Programming >> HTML

Highlight HTML content for reference purposes


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>