CSS syntax
The CSS syntax consists of a set of rules and comments. Rules have two main parts, a selector and one or more declarations.
Selector defines elements to which rule will be applied. In simple case it can be the html element or a class name. You can grouping and combine selectors.
Declarations are pairs of CSS property and its value in curly brackets. There are more than 100 CSS properties.
example code | explanation |
---|---|
|
|