What is a CSS Selector?

CSSWeb DevelopmentFront End Technology

The selectors in CSS are patterns to select the element to style.

Let us see the key selectors in CSS −

Selector
Demo
Description
 class
.demo
Selects all elements with class="demo"
#id
#myid
Selects the element with id="myid"
*
*
Used to select all the elements
raja
Published on 08-May-2018 12:34:55
Advertisements