Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
What is a CSS Selector?
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 |
Advertisements
