Help - Search - Members - Calendar
Full Version: favicon ie7
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
joshgood
i have not yet uploaded this any of my websites because i cannot get the favicon to display in ie7 i'm gonna give you my code i've tried several different ways to get this to work when i preview it in ie7 but it refuses to display i've been fighting with this for some time i'm new at this so please be detailed in responses. Is it possible it refuses to work because i haven't uploaded it to a server nothing really seems to work Please help the icon has been correctly converted to an ico file using a program and when i validate the ico it works and is saved in 16 x 16 pixels only.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>Page title</title>

<link rel= "Shortcut Icon" href= "C:/Users/josh/Desktop/New%20Folder%20(2)/favicon.ico%20"
type="image/x-icon" />

<link rel= "icon" href= "C:/Users/josh/Desktop/New%20Folder%20(2)/favicon.ico%20"
type="image/x-icon" />

</head>
<body>



</body>
</html>

Darin McGrew
IIRC, MSIE only shows the favicon after you bookmark the site.

However, no one but you will have access to C:/Users/josh/Desktop/... on your filesystem.

And your doctype declaration throws browsers into quirks mode. Besides, HTML 4.0 was superseded by HTML 4.01 almost immediately, and surely new documents can transition to HTML 4.01 Strict by now...
Brian Chandler
QUOTE
And your doctype declaration throws browsers into quirks mode. Besides, HTML 4.0 was superseded by HTML 4.01 almost immediately, and surely new documents can transition to HTML 4.01 Strict by now...


What is the empirically detectable advantage in using "Strict"? I thought the main difference was that an odd collection of functions (like using target??) were no longer available?
pandy
What Darin said...

QUOTE(Darin McGrew @ Jun 4 2008, 07:40 AM) *

And your doctype declaration throws browsers into quirks mode.
Darin McGrew
QUOTE
What is the empirically detectable advantage in using "Strict"? I thought the main difference was that an odd collection of functions (like using target??) were no longer available?
Actually, the target attribute (specifically, <base target="_top">) is the only thing from Transitional that I've added to my custom DTD.

If you're using frames, then you need target and you need Transitional. But otherwise, Strict+CSS is a better approach.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.