Home >Web Front-end >CSS Tutorial >What are CSS selectors?
Selectors in CSS are patterns that select elements to be styled.
Let’s look at the key selectors in CSS -
Selectors | Demo | Description |
---|---|---|
# Class
| .demoSelect all elements with class="demo" | id | myidSelect the element with id="myid" | p> |
* * |
is used to select all elements |
|
The above is the detailed content of What are CSS selectors?. For more information, please follow other related articles on the PHP Chinese website!