Start your markdown portfolio blog with nextjs, nextra, tailwind CSS, and Shadcn UI using the section blog theme.
Rajdeep Singh.

Text Highlighting In HTML 5?

Mark tag Help to High Lighting text in HTML 5

By html 1 min read

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>