mark tag
Advertisements
<mark> tag
Html <mark> is used for defines marked text. This tag is use when you want to highlight part of text on your web page.
Syntax
<!DOCTYPE> <html> <body> <h3>Html Introduction</h3> <p>Html is very <mark>simple</mark> to use and it is also <mark>easy</mark> to learn.</p> </body> </html>
Result
Html Introduction
Html is very simple to use and it is also easy to learn.
You can also apply css on <mark> tag
Syntax
<!DOCTYPE>
<html>
<head>
<style>
mark
{
background:cyan;
}
</style>
</head>
<body>
<h3>Html Introduction</h3>
<p>Html is very <mark>simple</mark> to use and it is also <mark>easy</mark> to learn.</p>
</body>
</html>
Result
Html Introduction
Html is very simple to use and it is also easy to learn.
The <mark> tag supports global and event attributes in HTML 5.
Browser supported
| Element | |||||
| <mark> | Yes | Yes | Yes | Yes | Yes |
Google Advertisment
