Answers for "how to highlight css html"

0

style highlight css

/* Now supported by all major browsers */

::selection {
  background-color: #000 /* Selection highight color */
  color: #FFF /* Optional colour change of text that is being selected */
}
Posted by: Guest on August-12-2021
-1

how to highlight any text in html and css

<!DOCTYPE html>
<html lang="en">
<head>
    <title>How to highlight any text in html</title>
</head>
<body>
    <p style="color: black;"><mark style="background-color: yellow;">Bharath Matha Ki Jai</mark></p>
</body>
</html>
Posted by: Guest on August-18-2021

Browse Popular Code Answers by Language