title: How to change the color of hyperlink after click it
body: <p>I want to change the color of the hyperlink after clicking on it, but remaining hyperlinks color are also changed..</p>
  
  <h3>CSS</h3>
  
  <pre><code>a:active {
      color: gray;
  }
  a:visited {
      color:black;
  }
  </code></pre>
  
  <h3>HTML</h3>
  
  <pre><code>&lt;body&gt; 
      &lt;a href="link1.html"&gt;a&lt;/a&gt;
      &lt;a href="link2.html"&gt;b&lt;/a&gt;
      &lt;a href="link3.html"&gt;c&lt;/a&gt; 
  &lt;/body&gt;
  </code></pre>