CSS Basic
How to apply CSS?
A CSS rule or definition or declaration contains a selector and a css declaration code or block.
Example
p{ background-color:yellow;font-size:15px;}
Selector: Selector is the HTML element you want to style, It could be any tag like <h1> <p> or any attribute line class, id.
Declaration Block: The declaration block can contain one or more declearation seperated by semicolon(;). In the above example there are two declarations:
1. background-color: yellow;
2. font-size: 15px;
Each declaration contain a property name:value pair, separated by colon.
Property: A property is a type of attribute of HTML element. It could be color, font-size.
Value: Values are assigned to CSS properties. In the above example, value "yellow" is assigned to background-color property.