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;`
}
There are three ways of inserting a style sheet:
External CSS :Each HTML page must include a reference to the external style sheet file inside the <link>
element, inside the head section.
<style>
element, inside the head section.style
attribute to the relevant element. The style attribute can contain any CSS property.color
property specifies the color of text.syntax : color: color|initial|inherit;
.