<mark>: The HTML Mark Text Element
1 Description
The HTML <mark>
element is used to highlight text in an HTML document.
The contents of the <mark>
element are rendered with a highlighter yellow background
by most web browsers.
2 Examples
<!DOCTYPE html>
<html>
<head>
<title>Mark Element Example</title>
</head>
<body>
<main>
<h1>When to use the Mark element</h1>
<p>
Sometimes it is useful to <mark>highlight</mark> individual
words so that you can bring those words to the attention of
the reader. <mark>You may also highlight entire sentences,
the choice is yours.</mark>
</p>
</main>
</body>
</html>
This document was last updated: