Add CSS styling to span as output - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:span

Description

Add CSS styling to span as output

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">
.postedon {<!--  w w w. j av  a  2s  .com-->
   color:Chartreuse;
}

.postedon span {
   color:yellow;
}
</style> 
 </head> 
 <body> 
  <p class="postedon"> Posted on <span>11/09/2018 14:00:00</span> </p>  
 </body>
</html>

Related Tutorials