html favicon.ico
snippet in html

png favicon

user2332

<link rel="icon" type="image/png" href="logo.png" />

html favicon.ico

user7622

<! -- For .ico files -->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

<! -- For .jpg/.gif/.png files -->
<link rel="icon" type="image/gif/png" href="favicon.png">