Answers for "how to change color of selection in html"

CSS
5

change highlight color html

::-moz-selection { /* Code for Firefox */
  color: red;
  background: yellow;
}

::selection {
  color: red;
  background: yellow;
}
Posted by: Guest on August-04-2020
1

css mark color

<style>
mark { 
  background-color: yellow;
  color: black;
}
</style>

<mark>Highlighted text!!</mark>
Posted by: Guest on March-23-2020

Code answers related to "how to change color of selection in html"

Browse Popular Code Answers by Language