Solved

Favicon in Website

Posted on 2013-05-11
3
312 Views
Last Modified: 2013-11-19
Hi,

I am creating a website, and giving the following line in <Head> element, after creating the favicon.ico, but my favicon is not displaying. I've tried on Chrome and Explorer.

Also some sites display a .gif as favorite icon, which I've tried but it does not work.

Code:
<link rel="shortcut icon" type="image/icon" href="Favicon.ico">

Kindly help..

Sanjay.
0
Comment
Question by:sanjay-gandhi
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Juan Ocasio earned 200 total points
ID: 39158001
Try <link rel="shortcut icon" type="./image/icon" href="Favicon.ico"> with the dot-slash.  Also, if you're testing the site and it's not displaying try emptying your cache.
0
 

Author Closing Comment

by:sanjay-gandhi
ID: 39158015
Thanks, it worked after clearing the cache.
But ./ was not required, because my icon is in root folder, where index.html is saved. Therefore the code works as:

<link rel="shortcut icon" type="image/icon" href="Favicon.ico"/>

Solved!!

Sanjay.
0
 
LVL 14

Expert Comment

by:Juan Ocasio
ID: 39158041
No problem.  Just make sure all other pages are in root if you're going to keep images/icon.

Good luck!
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel Hyperlink Question 4 60
push Book Today button to right 10 34
Error in Angular 2 when showing in grid 4 21
WordPress 8 25
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question