The ::selection

//the following example makes the selected text red on a yellow background:

::selection {
  color: red; 
  background: yellow;

Matches the portion of an element that is selected by a user.

The following CSS properties can be applied to ::selection: color, background, cursor, and outline.

Related concepts

The ::selection

The ::selection — Structure map

Clickable & Draggable!

The ::selection — Related pages: