how to change the colour of text selected with mouse from blue to yellow code example
Example 1: change highlight color html
::-moz-selection { /* Code for Firefox */
color: red;
background: yellow;
}
::selection {
color: red;
background: yellow;
}
Example 2: css selected color
::selection {
background-color: #222;
color: white;
}