Click here to Skip to main content
Click here to Skip to main content
Technical Blog

Tagged as

How to Add Favicon

, 4 May 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
IntroductionFavicon is a image\icon displayed alongside the address of a website and also shown as icon in your favorite/bookmark list of website.How to add a faviconCreate a icon (.ico) file which you want to show in address bar, on tab or icon in favorite item. Name it as favicon.ico and place it
Introduction
Favicon is a image\icon displayed alongside the address of a website and also shown as icon in your favorite/bookmark list of website.
image
How to add a favicon
  1. Create a icon (.ico) file which you want to show in address bar, on tab or icon in favorite item.
  2. Name it as favicon.ico and place it on the root folder of your website.
  3. Add below tag under <Head> section.
    <link href="favicon.ico" rel="Shortcut Icon" />
Points to remember
  1. Size of icon should not exceed dimension 16 x 16.
  2. Browsers can keep your favicon on their cache, so even if you have changed it, old icon can still be shown to user by browser.
  3. In case above line of code is not working try using this.
    <link rel="icon" type="image/ico" href="favicon.ico" /> 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

SonuKSingh
Software Developer
India India
Programming is my passion. It is always fun to learn new things.
 
Follow my blog
Follow on FB
Follow on   Twitter   LinkedIn

Comments and Discussions

 
GeneralMy vote of 1 PinmemberGerd Wagner5-May-14 11:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.141022.1 | Last Updated 4 May 2014
Article Copyright 2014 by SonuKSingh
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid