Select the clicked item from unordered list in html - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Select the clicked item from unordered list in html

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">
.items li:active {
   color:Chartreuse;
}
</style> <!--from   w w  w .jav a 2s .  com-->
 </head> 
 <body> 
  <div class="items"> 
   <ul> 
    <li>Lorem</li> 
    <li>Lorem</li> 
    <li>Lorem</li> 
    <ul> 
    </ul> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials