Set color to html by attribute title value - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Color

Description

Set color to html by attribute title value

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">

p >abbr[title="WHO"] {
   color:red;
}


      </style> 
 </head> <!--from w ww .  ja v a  2  s  .  c om-->
 <body> 
  <p> <abbr title="WHO">WHO</abbr> was founded in 1948. </p> 
  <p> <abbr title="WHO">World People</abbr> was founded in 1948. </p> 
  <p title="Free Web tutorials">W3Schools.com</p>  
 </body>
</html>

Related Tutorials