<p>What is currently the best way to get a favicon to display in all browsers that currently support it?</p>

<p>Please include:</p>

<ol>
<li><p>Which image formats are supported by which browsers.</p></li>
<li><p>Which lines are needed in what places for the various browsers.</p></li>
</ol>

Having a
```
favicon.*
```
in your root directory is automatically detected by most browsers. You can ensure it's detected by using:
```
```
<link rel="icon" type="image/png" href="/path/image.png" />
```
```
Personally I use .png images but most formats should work.