Text Highlighting In HTML 5?

Mark tag Help to High Lighting text in HTML 5

Text Highlighting In HTML 5?

Text Highlighting in HTML 5, You Highlight the Text in a Paragraph heading and use it inside another tag. Add some Color Help Of CSS. So You Use <mark> tag In <p> tag.

Syntax:

<mark> </mark>
Mark example.

Mark tag by default CSS By Chrome Browser.

mark {
    background-color: yellow;
    color: black;
}

Example:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        mark{
            color:white;
            background-color: black;
            padding: 0px 3px;
        }
    </style>
</head>
<body>
       <p> we are write  article that contains the <mark> Mark tag </mark> for Highlighting the text. you will make it easier to see it.</p>    
</body>
</html>
mark html example

Contact me