how to change the color of mark tag in html code example
Example 1: how to change the color of mark tag in html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p>Here is the <mark style="color: white; background-color:green"> searched query </mark> </p>
</body>
</html>
Example 2: how to change the color of mark tag in html
<body>
<p>The Math test is on <mark style="color: red;">Friday</mark>.</p>
</body>
Example 3: how to highlight text in css
<body>
<p>The Math test is on <mark>Friday</mark>.</p>
</body>