School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,149 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,693 people online right now. Registration is fast and FREE... Join Now!




Adding a Favorite Icon

 
Reply to this topicStart new topic

> Adding a Favorite Icon, How to Add a Favorite Icon to Your Website

tim4christ
Group Icon



post 2 Sep, 2009 - 01:23 PM
Post #1


This is my first tutorial with DIC, so hopefully it will all work out! smile.gif Since I am a relatively new web designer I was surprised to find that there are no tutorials on the simple subject of how to make a favorite icon. Although most web designers should know how to do this, I think there are many (I was one) who do not.

Of course the first step is to create a favorite icon. For most browsers (like safari) you can just through in a jpeg of any size, and it will work. But, the ever-popular ie (internet explorer) has very strict rules for what kind of image you can use. sad.gif To make this very picky browser happy, you must convert your image to .ico and it must be 16x16. A program I have found to be helpful is Icon Editor, this program will convert any .bmp image into .ico format, it will also resize it for you.

Now that you have your icon ready, you need to use it on your webpage. You will need to upload your icon to the root directory on your server. Name the file “favicon.ico,” this will make all of the pages on your site have that icon placed next to the address bar, just like Google! Now, if you don’t want to clutter up your root directory with a favorite icon, you will need to put this code in between the <head> and </head> elements on every page on your site:
CODE
<link rel="shortcut icon" type="image/ico" href="http://www.domain.com/the/root/to/the/icon/file/favicon.ico">


I hope that makes sense. Any comments or questions would be appreciated. smile.gif
Go to the top of the page
+Quote Post


Register to Make This Ad Go Away!

kewlkreator
Group Icon



post 6 Sep, 2009 - 10:24 PM
Post #2
Could you explain the other methods? There are many.
Go to the top of the page
+Quote Post

tim4christ
Group Icon



post 7 Sep, 2009 - 06:48 AM
Post #3
Why? The one given in this tutorial has worked the best for me. icon_up.gif I have tried many different methods of doing this and the one given in this tutorial is by far the best way to do it! smile.gif
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 11/21/09 04:23PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month