Setting text color from CSS - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Setting text color from CSS

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.colorRed<!--  ww w. ja  v a  2s.com-->
 {
   color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="colorRed">
    bla2 
  </div>  
 </body>
</html>

Related Tutorials