Horje

How to set Default CSS Settings for MARK

Most browsers will display the <mark> element with the following default values.

index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
<style>
mark { 
  background-color: yellow;
  color: black;
}
</style>
</head>
<body>

<p>A mark element is displayed like this:</p>

<mark>Highlighted text!!</mark>

<p>Change the default CSS settings to see the effect.</p>

</body>
</html>

Output should be:

How to set Default CSS Settings for MARK




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin