Solved

Favicon in Website

Posted on 2013-05-11
3
309 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now