<mark>

Description

The <mark> element represents a span of text that is highlighted.

Example


<!DOCTYPE HTML> 
<html> 
    <head> 
        <title>Example</title> 
    </head> 
<body> 
    <mark>HTML</mark> is <mark>cool</mark>.
</body> <!--from   w  w w.  ja va2 s  .  c o m-->
</html>

Click to view the demo

The code above generates the following result.

mark

mark with style


<!DOCTYPE HTML> 
<html> 
    <head> 
         <style> 
         mark {background-color: #0F0; font-weight:bold;} 
         </style> 
    </head> 
<body> 
         <mark>java2s.com</mark>
</body> <!--   w w w.  j a v  a  2  s.  c o m-->
</html>

Click to view the demo

The code above generates the following result.

mark




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference