Firefox fixed? :-)

Well, that was a fun hour… hacking code and trying to work out what was going on “under the hood”. :-)

In the end, all I had to do was remove this line of code from the very very top of the page…

*!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>

To be honest, I have no idea what that code does… apart from the fact that removing it makes the blog display normally in Firefox… at least on my machine.

If anyone would like to enlighten me as to what that code is for, and why removing it “fixed” the problem, I would really like to know. Please post a comment and I’ll read it/approve it. Be sure to include a link to your site if you have one. :-)

Edit: OK, now I’ve spent a few more hours figuring this out and found another area of the Internet I was blissfully ignorant of! Thanks to everyone who pointed me to resources to learn about DOCTYPES… it turns out to be all about browser compatibility… and thanks to the Firefox users who reported the problem and tested the fix… but the biggest “thanks” to Alex who suggested a DOCTYPE that worked for both Internet Explorer and Firefox. And yes, this is the same clever Alex who provided these freebies I wrote about below. :-)

Browser compatibility? Harrumph. When I started, it was Netscape Navigator or nothing! ;-)

4 Responses to “Firefox fixed? :-)”

  1. ChrisGreenhough Says:
    MyAvatars 0.2

    Hi Neil :-)

    Long time no speak. What am I saying? No way you’ll remember me! But you were very helpful to me many years back when I was a total eBiz newbie and just dipping a toe in the water. You spent a lot of time corresponding with me by email and I really appreciated that. I’m sure you had better things to do.

    Now I thought I’d take the opportunity to return the favour! ;-) The code block you’ve quoted is essentially an instruction to the browser as to how it should interpret the html of your webpage, what dialect it’s in, if you will. Some people swear by doctypes (semantic, and all that) other people keep it real simple and delete them, as you have done.

    Out of interest, did you also have this line…

    …immediately after the doctype? And you’ve got the doctype before the head tags?

    Anyway, I hope that helps. Please get back to me if what I said is unclear.

    Regards,
    Chris G.

    P.S. Sadly, my previous online ventures fizzled out, largely for personal reasons. But, as my 40th birthday draws near (next week, in fact) I’ve promised myself that I’m going to restart the eBiz. Life begins, as they say… All the best, Neil.

  2. The Grey Man Says:
    MyAvatars 0.2

    Oops! Sorry. The line of code I pasted in is missing. It should have been as follows…

    html xmlns=”http://www.w3.org/1999/xhtml”

    …but with the opening and closing tag braces. Sorry. Anyway, I see you’ve sorted it now. Bye.

  3. Dave Navarro Says:
    MyAvatars 0.2

    Neil -

    Looking good. Glad you got it all up and running again!

    Dave Navarro
    Rapid Results Coach
    www.davenavarro.com/wealthblog