Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FavIcon not working

Status
Not open for further replies.

ksbigfoot

Programmer
Apr 15, 2002
856
CA
I created a favicon.ico and I can't get it to display in my browser. Does anyone know what I am doing wrong?

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<LINK REL="SHORTCUT ICON" HREF="favicon.ico">
	<title>Untitled</title>
	
</head>

<body>

Test

</body>
</html>
 
Is your browser IE? I've found that most of the time IE won't show the favicon unless the page has been saved as a bookmark. And in that case, it also has to be saved as a bookmark AFTER the favicon has been uploaded. Try in firefox and see if it works, ff usually doesn't have problems displaying it right away.

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
kaht said:
I've found that most of the time IE won't show the favicon unless the page has been saved as a bookmark.

i thought it was the other way around.

try using both the icon and shortcut icon rels.

Code:
<link rel="icon" href="[URL unfurl="true"]http://www.blah.com/favicon.ico"[/URL] type="image/x-icon" />
<link rel="shortcut icon" href="[URL unfurl="true"]http://www.blah.com/favicon.ico"[/URL] type="image/x-icon" />






*cLFlaVA
----------------------------
[tt]"quote goes here"[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top