HTML Tutorial

HTML Tag: <mark>

Usage of

The <mark> tag is used to highlight text as important or relevant. It visually stands out from the rest of the text, making it easy to locate and draw attention to.

Attributes of

  • bgcolor: Specifies the background color of the highlighted text.

Examples with

<mark>Important Notice</mark>

Simple HTML Example

<!DOCTYPE html>
<html>
<head>
  <title>Example of <mark> Tag</title>
</head>
<body>
  <h1>Important News</h1>
  <p>This is a <mark>very important</mark> announcement.</p>
</body>
</html>

Benefits of Using

  • Improved Readability: Highlights important information, making it easier to skim and locate key points.
  • Enhanced Accessibility: Helps users with visual impairments identify relevant text.
  • Increased Emphasis: Provides a visual cue to draw attention to important content, aiding comprehension.