How to style an image's alt attribute
<p>I am trying to display the (outer)html of an <code>img</code> tag, but I want the <code>alt</code> attribute to be in red.</p>

<p>The way I get the string:</p>

<pre><code>var img_outerHTML = img[0].outerHTML;
</code></pre>

<p>This gives me the string:</p>

<p><code>&lt;img alt="main-logo" src="main-logo.png"&gt;</code></p>

<p>So how can I have <code>main-logo</code> to be red?<br>
Thank you!</p>

<p><strong>EDIT</strong>  </p>

<p>Thanks to <code>techfoobar</code> for the solution and everyone else that helped!<br>
Here is a <a href="http://jsfiddle.net/n7xX8/" rel="nofollow">jsFiddle Example</a>.</p>
