"TEST: Add favicons to any link using Google API"
Bootstrap 3.0.0 Snippet by couchcrumb

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <img src="http://maps-api-presentations.appspot.com/io2012-spatial/images/google_developers_icon_128.png" alt="google api"> <h2>A simple way to add a favicon to links in Bootstrap</h2> <h4>Let Google API do all the heavy lifting.</h4> <p> You can use Google S2 FavIcon Converter API which returns a 16px X 16px PNG image for any website. <br><strong>Note:</strong> The file type and location of a favicon is not always the same, so using Google API will make it easy. <br> <strong>TIP:</strong> The target="blank" just opens a new window, nothing to do with favicon api. </p> <p>Link without favicon - just a normal link:<br> <a href="http://facebook.com" target="_blank">Read it on facebook</a> </p> <p>Link with favicon:<br> <a href="http://twitter.com" target="_blank"><img src="https://www.google.com/s2/favicons?domain=twitter.com" alt="">  Read it on twitter</a> </p> <pre><code> <a href="http://youtube.com"><img src="https://www.google.com/s2/favicons?domain=youtube.com" alt="">  Read it on youtube.com</a> </code></pre> <hr> <h4>Alternate using api.statvoo.com - without Google API </h4> <p>Link with LARGER favicon using :<br> <a href="http://instagram.com" target="_blank"><img src="https://api.statvoo.com/favicon/?url=instagram.com" alt="">  Read it on Instagram.com</a> </p> <pre><code> <a href="http://pof.com"><img src="https://api.statvoo.com/favicon/?url=pof.com" alt="">  Read it on pof.com</a> </code></pre> <p class="text-right"> <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fbootsnipp.com%2Fiframe%2Fex3rD" target="_blank"><small>This snippet is valid HTML</small><sup>5</sup></a> </p> </div> </div>

Related: See More


Questions / Comments: