Change Selection Color of Text using CSS

If you want to change the default highlighted color of the text in a webpage, just use CSS3 ::selection Selector to achieve the result. ::selection will match the selected text and override the default text highlight color with the one provided by you.