title: How to assign a:hover, a:visited, etc. using the style attribute only
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1033156/how-to-write-ahover-in-inline-css">How to write a:hover in inline CSS?</a>  </p>
  </blockquote>
  
  
  
  <p>I need to generate some self-contained HTML code, so I cannot use any external stylesheet or style tag.</p>
  
  <p>One of the requirement is that a link must have a <code>hover</code>, <code>visited</code> state etc. I know how to do that with a stylesheet, but how can I do it inline? i.e. what should I put in the style attribute:</p>
  
  <pre><code>&lt;a style="???" href="http://example.com"&gt;Link&lt;/a&gt;
  </code></pre>