Reading-notes

css:

CSS syntax :

CSS is a rule-based language — you define rules specifying groups of styles that should be applied to particular elements or groups of elements on your web page.

The rule opens with a selector **. This selects the HTML element that we are going to style. We then have a set of curly braces { } Inside those will be one or more declarations, which take the form of **property and value pairs.

example :

h1 {

` color: red;`

` font-size: 5em;`

}

As there are so many things that you could style using CSS, the language is broken down into modules.

Three Ways to Insert CSS :

There are three ways of inserting a style sheet:

If some properties have been defined for the same selector *element) in different style sheets, the value from the last read style sheet will be used.

some css property:

syntax : color: color|initial|inherit;.

Selectors: