Jumprit's Knowledge

Jumprit's knowledge and references to share.

Add a Favicon to your Site —

First you need to make 16×16 pixel png image.

Assuming your favicon image is in /somewhere/myicon.png , this is how to put it in html:

<!DOCTYPE html
      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
      xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="en-US"
      lang="en-US">
<head profile="http://www.w3.org/2005/10/profile">
<link rel="icon"
      type="image/png"
      href="/somewhere/myicon.png" />
[…]
</head>
[…]
</html>
Btw, incase you don't know, favicon is the small icon before the website title on top of your browser. :-p

Categorised as: Web



Leave a Reply