Text Highlighting In HTML 5

Text Highlighting In HTML 5?

#html#html 5#html tutorial#Text Highlighting#text highlighting in html#html for beginner

Rajdeep Singh

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 can Use <mark> tag In <p> tag very easily.

Syntax:

<mark> </mark>

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>

Contact me


Read more articles related frontend development
Read more