CSS change the bold test to have yellow background - HTML CSS CSS Property

HTML CSS examples for CSS Property:background

Description

CSS change the bold test to have yellow background

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

.test<!--from   w w  w. j a  va  2  s .co m-->
{
   color: #1F1FFF;
}
.test b
{
   background-color: yellow;
}


      </style> 
 </head> 
 <body> 
  <div class="test">
    This is a 
   <b>paragraph</b> . 
  </div>  
 </body>
</html>

Related Tutorials