# Declaration

*noun*

say it: **“dek-luh-RAY-shun”** **/ˌdɛkləˈreɪʃən/**

One line of styling inside a CSS rule: a property, a colon, a value and a semicolon, such as color: teal;

## What is a **declaration** in CSS?

A **declaration** is one styling instruction: a property, a colon, a value and a semicolon.

```css
.banner {
  background-color: gold;   /* one declaration */
}
```

## In a sentence

- “I added one more **declaration**, font-weight: bold;, to make the prices on the menu stand out.”

Level: Novice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=1)

Updated: November 9, 2026

## In other subjects

- [Declaration in C#](https://www.ask-codey.com/glossary/declaration-c-sharp)
- [Declaration in Java](https://www.ask-codey.com/glossary/declaration)

Source: https://www.ask-codey.com/glossary/declaration-css
