Loading...
HTML <mark> Tag

HTML <mark> Tag

In this tutorial, we will learn about mark tag in HTML with the help of examples.


<mark> Tag

Mark tag <mark> is used to highlight the text inside it.

Note : The text usually highlighted with yellow color.

Syntax

<mark>........</mark>

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Mark Tag</title>
  </head>
  <body>
    <mark>This is the text inside the mark tag.</mark>
  </body>
</html>

Output

This is the text inside the mark tag.

Global Attribute

Mark Tag support all the global attributes of HTML.


Event Attribute

Mark Tag support all the event attributes of HTML.


Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of <mark> tag in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML <meta> Tag.

- Related Topics