CSS Selectors and syntax

Before we introduce you selectors you should know ho CSS Syntax look like. It is really simple as you can see in the picture blow.

Syntax of CSS

Syntax of CSS

To use CSS we have to use selectors. This selectors are defined in HTML code. Selectors defines the element(s) to be styled. To style a different element, change the selector. We know 5 types of selectors.

Element / tag selector

By: Tomas Silny
Edited: 2020-11-09 13:50:20
Source: developer.mozilla.org/