# Selector

A CSS Selector allows you to identify (target) one or more elements in the DOM to apply…

## What is a CSS **Selector**?

A CSS **Selector** allows you to identify (target)
one or more elements in the DOM to apply styling.

* **tag** i.e. `p` `h1` `div`
* **#id** i.e. `#first-name` `#product-id`
* **.class** i.e. `.header` `.button`

```css
p{}
#product-id{}
.button{}
```

Level: Novice · [More CSS terms at this level](https://www.ask-codey.com/glossary/subjects/css/novice)

Updated: September 19, 2026

Source: https://www.ask-codey.com/glossary/selector
