CSS style as color attribute on font tags - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

CSS style as color attribute on font tags

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
.red-text {<!--  w  w w  . j a v a  2s.c o  m-->
   color:Chartreuse;
}

.green-text {
   color:yellow;
}

.gold-text {
   color:blue;
}
</style> 
 </head> 
 <body> 
  <p class="red-text">Lor</p> 
  <p class="green-text">Lorem</p> 
  <p class="gold-text">Lore</p>  
 </body>
</html>

Related Tutorials