How to set an icon for your website?

By Mohammad Mahdi Ramezanpour at July 12, 2008 23:25
Filed Under: Web design

Most of the times when you're developing a website, you probably want to set an icon for your site like these:

google microsoft

If you want to set an icon like icons above, you must add some lines of codes to your page:

 

Just place it between <head></head> tags.

<link rel="shortcut icon" href="favicon.ico" />

You can change the favicon.ico to any name else you want, but it's better to leave it alone with the name favicon.ico because firefox and related browsers will change your website icon to the favicon.ico if there was not any <link> in your page.

 

You can also set a non icon file like .png files as your website's icon:

<head profile="http://www.w3.org/2005/10/profile">

<link rel="icon" type="image/png" href="http://example.com/myicon.png">

</head>

Comments

7/17/2008 11:42:25 AM #

So Useful Site My Honey


Sp Useful Post :X

Leader

7/18/2008 3:24:03 PM #

sharif

The site is really nice. Keep it up. This post is very helpul.
Take good care both site and yourself.

sharif

Comments are closed

Currently Reading

Quote of the day

Send Persian SMS