<html>
<head>
<style>
::selection {
color: red;
background: yellow;
}
</style>
</head>
<body>
<h1>Demo of ::selction</h1>
<h2>Select some text on this page</h2>
<p>This is a paragraph.</p>
<div>This is some text in a div element.</div>
</body>
</html>