CSS Selector

CSS Type Selector are CSS Classes where the name of the Class is an HTML Tag. For example to apply CSS style effect on HTML body Tag, the class name will be body. An example of CSS Selector is given here for body tag

<style type="text/css">

body{
margin:0;
background-color:Red;
}

</style> 

CSS Selector for Heading

Some examples of CSS Selectors for Heading like H1 and H2 etc are given here

h1{
color:#b2f7ff;
font-size:13px;
margin:0;
}

h1{
color:blue;
font-size:10px;
background-color: yellow;
}

in the same way CSS selectors can be defined for any HTML Tag. In the example below we have defined some properties for HTML paragraph tag p.

p{
border-color:red;
border-style:dashed;
border-width:2px;
font:Arial;
}