CSS Intro

CSS style sheets are used to style HTML elements that appear on our website.

The web browser will be responsible for our HTML formatted according with the specified CSS style sheet.

The styles can be defined on our website or can be defined in external files with extension "css"

CSS syntax

selector {property: value, property: value}

CSS example

p {color: blue; font-size: 12px;}

You can also define multiple lines to make it more clear

p { color: blue; font-size: 12px; }

Explanation of Example:

All tags <p> our HTML file, will the blue text and its size will be 12px.