Writing CSS is easy. Let's look at a simple declaration :
This declaration is made of three parts.
The first part is the p. It's call a selector because it selects the rule. It allows you to say which element in your HTML document should be styled. In this case it means: "I want to style all the p elements (paragraph elements) of the HTML document".
The second part is the body of the CSS rule delimited by the brackets { ... }. Everything that will be put inside these brackets will be applied to the selector we have seen in the first part.
The third part is color : green;. This is a CSS property declaration. A property declaration is made of the property name (here it is the color property) followed by a colon, followed by the value of the property (here it iss the green keyword), ended by a semicolon. You can add as many property declarations as you want inside your rule declaration body.
"Simple example which shows how to style a HTML document with CSS."