Reputation: 1189
I want to put icon for the title
<?xml version="1.0" encoding="ISO-8859-1"?>
<html>
<head><title>TITLE</title></head>
<link rel="icon" type="image/png" href="logo.png" />
<body>
</body>
index.html and logo.png are in a same folder.
there is no Icon displayed.
Please guide.
Thanks in advance
Upvotes: 0
Views: 182
Reputation: 10430
It depends on the browser but favicons generally are heavily cached, above and beyond normal caching. If you've opened the site before, the old icon (or absence of icon) is stored until all data associated with the website is removed completely. Clearing all browsing data should help with the most common browsers.
Upvotes: 1
Reputation: 4723
If you want to use a png, try this:
<link rel="icon" type="image/png" href="http://example.com/image.png" />
Upvotes: 2