What is CSS ?

CSS stands for cascading style sheet. The purpose of css is to present the page efficiently. We can show a visitor clearly which sections are important, which are moderate and which are of least importance without messing with the html tags. Three types of css are there

Types of css ?

* Inline (used through style attribute of html tags)
* Internal (used through class where it is defined in the same page inside style tags)
* External (used through class where it is defined in a separate css document which is linked using link tag)

Different between ID & CLASS

ID is used generally used when we want the element to be unique throughout the whole document and class is used as a template, so that we can use it in various places.

Example: