CSS Syntax

A CSS rule set contains two blocks.


The HTML element to be styled is specified by a selector.

Declaration Block:

One or more declarations containing a property name and value separated by a semicolon is included in the declaration block.


The type of attribute of the HTML element is known as property. For example, color, border etc.


CSS properties are assigned with certain values.


Selector{Property1: value1; Property2: value2; ..........;}
Please follow and like us:
Content Protection by DMCA.com