CSS rule overwritten - HTML CSS CSS

HTML CSS examples for CSS:Introduction

Description

CSS rule overwritten

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">
a:link {
   color:Chartreuse;
}

a.button {
   color:yellow;
   background:red;
}
</style> <!-- w ww . j  a v  a 2s  .c o m-->
 </head> 
 <body> 
  <a href="google.com">Lore</a> 
  <a href="google.com" class="button">Lorem</a>  
 </body>
</html>

Related Tutorials