CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS ::selection Selector

CSS ::selection Selector

 

 

The ::selection selector is used to match the portion of an element that is selected by a user. Some properties used on it are:-

  1. color
  2. cursor
  3. background
  4. outline

 

Syntax:-

 

Its syntax is:-
::selection {
  css declarations;
}

 

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS