<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
::-moz-selection { /*Firefox */
color: #fff;
background: blue;
}
::selection {
color: #fff;
background: blue;
}
</style>
</head>
<body>
<h1>CSS ::selection Selector</h1>
<p>This is a paragraph.</p>
<p><strontg>Note</strong>: Try to select any content in this example.</p> </body>
</html>