Latest Post

Types - User Defined

Types - User Defined

Here user defines his own style and uses it anywhere he wants.

Example : 


   <head>  
 <style>  
 .style1  
 {  
 color: red;  
 background-color: orange;  
 }  
 </style>  
 </head>  
The names used for user defined styles should not belong to any html tag. We set the style for the tag using the attribute "class".

Example1:

 <font class=style1>home</font>
 
Result:

home

Example2:


 <a href="explainpoint.php" class=style1>home</a>  

Result:

home