Interactive online courses HTML Academy
2026-03-09 14:05 Diff

The list of properties and values can be found inside the curly braces of the CSS rule. “Property-value” pairs are separated from each other by a semicolon, and the property is separated from its value by a colon. The property determines which appearance characteristic we want to change, and the value determines how it is changed. Recall the following example again:

.feature-kitten { padding-top: 60px; /* Top padding */ background-image: url("img/bottle.svg"); /* Background image */ }

In the example the padding-top property is assigned the value 60px, whereas the background-image property is assigned the value url("img/bottle.svg"). As a result, this CSS rule assigns a top padding and background image to all elements with the feature-kitten class.

You can set the display parameters for any tag using CSS, such as the width and height, margins, font color and size, background, and so on. Every time we add a new property or change its value, we change something on the page. Let’s try to add a few new properties and see how that changes the blog page.