I am making a website and there is an error.
It won't show the website icon.
Proof: https://i.stack.imgur.com/053Xh.png
Code:
<link rel="icon" href="images/favicon32.ico" type="image/x-icon"
You are not closing the link tag add this " /> " at the end
<link rel="icon" href="images/favicon32.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
Do the following things.
Please close you link tag by adding "/>"
For good practice, first move favicon in main/root folder, not in inner folders, to load it fast
Change your favicon file name into "favicon" and its extension must
be "ico" not icon. Please see the file name carefully.
Related
I am trying to write a simple HTML page and I want to put my css and my favicon in another folder, put this does not work.
<link rel="shortcut icon" type="image/x-icon" href="../other/home.ico" />
<link rel=stylesheet href="../other/home.css" />
when I use this code, it doesnt find the right file even though i think it is the right way to write it.
my HTML file is in the folder: (E:\website\transendence) while my css and favicon is in: (E:\website\other)
I am trying to add icon to html page.
Following is the code,
<link rel="icon" href="../../images/favicon.ico" type="image/x-icon"/>
Here I am trying to get favicon.ico from specific path.
This works on chrome but not on IE.
IE 11 version
Did you try this method:
<link rel="icon" href="url/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="url/favicon.ico" type="image/x-icon" />
<link rel="ICON" type="image/x-icon" href="http://example.com/myicon.ico"/>
Try any of these and check whether It worked for you.
Check this out:
How do I force a favicon refresh
Basically, IE11 is fierce about caching the favicon. Adding a cache buster in the URL might fix it. Something like ../../images/favicon.ico?v=1.
Another user also suggested removing type="image/x-icon".
I'm doing an assignment for class, and we were tasked to make a webpage. All went well with creating the page, but I'm struggling to get the icon on my browser tab.
He instructed us to get the icon from one of our folders
This is from his directions
"Note in order to show your icon, you insert this line in your html head section"
<link rel="shortcut icon" href="images/favicon.ico" type="favicon/ico" />
"Assuming that your company icon is in the folder images"
I've tried many variations of that, but it won't work.
Mine is called favicon(1).ico
Here's one of my attempts
<link rel="shortcut icon" href="/favicon(1).ico" type="image/x-icon" />
Here's another.
<link rel="shortcut icon" href="images/favicon(1).ico" type="favicon/ico" />
I have a folder on my Desktop called "Question 1" and within that folder I have my HTML file for this assignent and another folder called "images". In the "images" file I have the "favicon(1).ico icon.
Is there a way I can take that icon from my folder and place it in my code?
This is the Snippet that I use whenever I need to configure a favicon:
<!-- for FF, Chrome, Opera -->
<link rel="icon" type="image/png" href="/assets/favicons/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/assets/favicons/favicon-32x32.png" sizes="32x32">
<!-- for IE -->
<link rel="icon" type="image/x-icon" href="/assets/favicons/favicon.ico" >
<link rel="shortcut icon" type="image/x-icon" href="/assets/favicons/favicon.ico"/>
This should work just fine.
You need to use .png in FF, Chrome and Opera and support them with 2 resolutions, for different devices and screen resolutions.
IE needs the .ico Image and needs the rel to be "icon" and "shortcus icon", don't ask me why, IE is always a bit of a wierdo as we all know :D
Try:
<link rel="shortcut icon" href="favicon(1).ico">
or this (for Mozilla)
<link href="favicon(1).png" rel="icon" type="image/png" />
It can be .png or .ico
<link rel='shortcut icon' href='img/favicon.ico'>
The above line is inside head part of page.
favicon.ico is inside img folder.
Doesn't work in Firefox and Chrome.
I restarted browsers, cleared the cache many times...
Any suggestion.
I also tried:
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">
You forgot to self-close the link tag.
I think it is recommended to use double quotes as well:
<link rel="shortcut icon" href="img/favicon.ico"/>
If this doesn't work, have you tried to actually access the favicon image by typing the url like: http://example.org/img/favicon.ico to make sure it is reachable ?
Try using:
<link rel="icon" type="image/x-icon"
href="image/favicon.ico"/>
without the "shortcut"
if that doesn't help, you might find something in this
Wikipedia article on favicon
If any of the other answers don't work, just put ! in front of the tag.
I have the html:
<link rel="shortcut icon" href="/images/favicon_muse_me.ico">
on my website Muse Me (http://www.musememobile.com)
The favicon won't show up if I open it with Chrome. It shows up in other Browsers.
The favicon showed up before in Chrome but then I changed it.
What should I do to make it show up in Chrome?
Add the ICO file to the root directory as 'favicon.ico'.
Some browsers disregard the favicon metatag, and just look for /favicon.ico.
Chrome does not support animated favicons, and it doesn't look like anyone is interested in implementing it.
Original bug report: http://code.google.com/p/chromium/issues/detail?id=19731
Latest duplicate: http://code.google.com/p/chromium/issues/detail?id=130062
What about if you declare a "type" for your link? Also, you can try a rel of simply "icon" in addition.
Try this:
<link rel="icon" href="/images/favicon_muse_me.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/images/favicon_muse_me.ico" type="image/x-icon" />
You could also try appending the domain to the image src as well:
<link rel="icon" href="http://www.musememobile.com/images/favicon_muse_me.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://www.musememobile.com/images/favicon_muse_me.ico" type="image/x-icon" />
UPDATE
You could also try using a png for your favicon (obviously will need to have a png version to do this). This is the approach I take with my own site and it looks fine in Chrome:
<link rel="icon" type="image/png" href="/images/favicon_muse_me.png" />
Make sure it's in <head> tag. It's kind of...'meta' info for the page.
<head>
<link href="//domain.com/favicon.png" rel="icon" type="image/x-icon">
</head>
I tried other options but this worked in Chrome for me
What I have been using is the URI, witch you can find out at https://websemantics.uk/tools/image-to-data-uri-converter and just put it in the atrabute href.
For example this is a valid URI a favicon
<link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAADQpJREFUeJzt3XusFdUVx/HvhctT8XURUWwFERSt1rco0ic+0NgWq7FWSVqjNeo/rbWpLWm1iTW2GrVpm2hMrCGK9Q9rlZr6bLXV+qBWrShaVFRArCKIioDAvf1jXSyvs889M3vPmpnz+yQrJJywz2Jm7zOzZ/YDRERERERERERERERERERERERERERERERERERERERERERERERERERERKqqwzuBmukEBgMDe6MDWNUbaxzzkozUQPpuIDAB2AcYDYwB9gBGAF3AcGCbwL/vxhrKh8ASYCGwqPfPhcA8YC5qSKWiBrJ1ncCBwFHAROCzwPjev09pHfAi8CzwDPAo8CSwPvH3SgNqIP+3LzAVOA6YBAz1TecT7wMPAw8CDwDP+6Yj7aIDOBK4BngN6KlIzAd+Duwf/YiIAGOBy4HX8a/seeMF4KfA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