title: HTML: how to set link colors only for specific class
body: <p>I just saw this question <a href="https://stackoverflow.com/questions/4383460/dont-change-link-color-when-a-link-is-clicked">Don&#39;t change link color when a link is clicked</a> and now I'm stuck.</p>
  
  <p>I have multiple links on my page, some of them with <code>class="menuLink"</code>. Now only for those I want to set the colors different as a normal link. If I would just use</p>
  
  <pre><code>a:link { color:green}
  a:hover { color:red }
  ...
  </code></pre>
  
  <p>this would apply to all links. But neither</p>
  
  <pre><code>.menuLink:link {color:green} 
  //I think because the css "doesn't know" that this class is used for links
  </code></pre>
  
  <p>nor</p>
  
  <pre><code>.menuLink a:link {color:green}
  </code></pre>
  
  <p>work. How can I achieve this?</p>