CSS - INTRODUCTION

CSS stands for Cascading Style Sheets. It is a style sheet language which is used to describe the look and formatting of a document written in markup language. It provides an additional feature to HTML. It is generally used with HTML to change the style ofweb pages and user interfaces.

CSS Syntax :
A CSS rule set contains a selector and a declaration block.
css-1


Selector :
Selector indicates the HTML element you want to style. It could be any tag like < h1 >, < title > etc...

Declaration Block :
The declaration block can contain one or more declarations separated by a semicolon.
For the above example,there are two declarations:
    color: yellow;
    font-size: 11 px;
Each declaration contains a property name and value, separated by a colon.

Property :
A Property is a type of attribute of HTML element. It could be color, border etc.

Value :
Values are assigned to CSS properties. In the above example, value "yellow" is assigned to color property.
    Selector{Property1: value1; Property2: value2; ..........;}  



(CSS - Selectors)