title: Display title on image hover using attr()
body: <p>Can I add <a href="http://jsfiddle.net/tDQWN/" rel="nofollow">this</a> to a image? I tried but its not working.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>img[title]:hover:after {
    content: attr(title);
    padding: 3px 3px 3px 3px;
    margin-top: 4px;
    background: #000;
    position: absolute;
    z-index: 9999;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;img title="Online" alt="Online" height="16px" style="margin-top:-5px;" src="https://cdn0.iconfinder.com/data/icons/weboo-2/512/tick.png"&gt;</code></pre>
  </div>
  </div>
  </p>