e01.org

Property (CSS)

A CSS property is a characteristic (like color) whose associated value defines one aspect of how the browser should display the element.

A **CSS property** is a characteristic (like color) whose associated value defines one aspect of how the browser should display the element.

Here's an example of a CSS rule:

```css
/* "div" is a selector indicating that all the div elements */
/* in the document will be styled by that rule */
div {
/* The property "color" with the value "black" indicates */
/* that the text will have the color black */
color: black;

/* The property "background-color" with the value "white" indicates */
/* that the background color of the elements will be white */
background-color: white;
}
```

## See also

- [Learn CSS](/docs/Learn_web_development/Core/Styling_basics)
- [The CSS reference on MDN](/docs/Web/CSS/Reference)
- [The CSS Working Group current work](https://www.w3.org/Style/CSS/current-work)

source: MDN Web Docs mirror · page

Cite this

"Property (CSS)". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Glossary/Property/CSS

JSON record · API collection · citation policy