Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Favicon in Website

Posted on 2013-05-11
3
Medium Priority
?
348 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 15

Accepted Solution

by:
Juan Ocasio earned 800 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 15

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

963 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