# CSS Rule

A CSS Rule defines the style that you want to apply to an element once you have targeted…

## What is a **CSS Rule**?

A **CSS Rule** defines the style that you want to
apply to an element once you have targeted it.

`property: value;`

```css
div {
    background-color: #eeeeee;
    border: solid 1px #555555;
}
```

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/css-rule
