<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="https://www.deviantart.com" target="_blank">Check it out on Deviantart.com</a>
</p>
<p>Link with favicon:<br>
<a href="https://www.deviantart.com" target="_blank"><img src="https://www.google.com/s2/favicons?domain=deviantart.com" alt=""> Check it out on Deviantart.com</a>
</p>
<pre><code>
<a href="https://www.deviantart.com"><img src="https://www.google.com/s2/favicons?domain=deviantart.com" alt=""> Check it out on Deviantart.com</a>
</code></pre>
<hr>
<h4>Alternate using api.statvoo.com - without Google API </h4>
<p>Link with LARGER favicon using :<br>
<a href="https://www.deviantart.com/" target="_blank"><img src="https://api.statvoo.com/favicon/?url=deviantart.com" alt=""> Check it out on Deviantart.com</a>
</p>
<pre><code>
<a href="https://www.deviantart.com/"><img src="https://api.statvoo.com/favicon/?url=deviantart.com" alt=""> Check it out on Deviantart.com</a>
</code></pre>
<p class="text-right">
<a href="https://validator.w3.org/nu/?showsource=yes&doc=https%3A%2F%2Fbootsnipp.com%2Ffullscreen%2FbxNor" target="_blank"><small>This snippet is valid HTML</small><sup>5</sup></a>
</p>
</div>
</div>