Articles → HTML → Mark Tag In HTML
Mark Tag In HTML
Purpose
Syntax
<mark>text to be highlighted</mark>
Example
<html>
<head>
<title>mark demo</title>
</head>
<body>
Please check with
<mark>sumit</mark>
on this.
</body>
</html>
Try It
Output
Changing The Background And Text Color
<html>
<head>
<title>mark demo</title>
<style type="text/css">
mark
{
background-color: red;
color: white;
}
</style>
</head>
<body>
Please check with
<mark>sumit</mark>
on this.
</body>
</html>
Try It
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
9.0 | 4.0 | 6.0 | 5.0 | 11.1 | Yes |