title: How to change the color of an active link?
body: <p>I want to change to color red of selected link.</p>
  
  <p>For example I clicked the link text dog, the color will change to red because it's currently selected. If I clicked the link text cat the color will change to red and link text dog will go back to default link color.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;ul&gt;
     &lt;li&gt; &lt;a href="#"&gt; dog &lt;/a&gt; &lt;/li&gt; 
     &lt;li&gt; &lt;a href="#"&gt; cat &lt;/a&gt; &lt;/li&gt;
  
  &lt;/ul&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>??
  </code></pre>