The HTML <mark> tag specifies a text highlighted for reference purposes, that is for its relevance in another context.
<!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>
This will produce the following result −
This tag supports all the global attributes described in − HTML Attribute Reference
This tag supports all the event attributes described in − HTML Events Reference
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |