Skip to main content

Posts

Showing posts with the label favicon best practices
# How to include favicon img in title bar locally....?? I am making a HTML page that is unpublished . One of the things I wanted to do was add a favicon to appear next to the title. I'm using google chrome and I noticed that other websites have favicons that appear next to the tile in the browser, but the one I'm trying to display won't show up.The site in in a folder on my desktop named site. This is the code: link rel="shortcut icon" href="/favicon.ico" Use Following Instruction:- Since you have a leading / in your href, you are referencing a file that will be in the root-folder. In case you have your page in a folder on your computer, not serving it from a local webserver, the leading / will tell the browser to look in the root folder of your filesystem. So the browser expect the file to be at C:/favicon.ico or similar, which is probably not what you've expected. If you have the favicon.ico in the same folder as the web...