title: How to dynamically change the color of the selected menu item of a web page?
body: <p>I am new to developing web pages. I am looking to create menus similar to the ones in stackoverflow.com (like Questions, Tags, Users shown above). How do I change the color of the selected menu (for example, the background color of the Question changes to orange when 'clicked')? </p>
  
  <p>I have managed to change the color while hovering (using CSS) as that was simple, but I am having trouble with this.</p>
  
  <p>Can I achieve this effect of changing the color of a clicked item using only CSS?</p>