Site loads source code in Firefox, ok in IE

by 8 replies
10
What have I done wrong? If you type in my url or click link to my site in Firefox, the site loads my source code. Seems to work on Internet Explorer.
Recession Proof Your Income

Please help.

Richard
dickie0228
#website design #code #firefox #loads #site #source
  • I'll take a look, but one quick tip I found when working with FF. Keep an eye out for double dashes "--" within comment blocks, etc. Even "- -" (with spaces) caused an issue in FF. IE tries to take care of you and keep things from blowing, so -- in comments isn't a problem. In FF, putting --, even within a comment block, caused the rest of the code to puke and show on the screen. Again, I haven't at this yet, but maybe this has something to do with your issue of FF.
    • [1] reply
    • Looks like your doctype is wrong. It probably becuase you are using html and you are self closing this line:

      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

      Just take the forward slash at the end off.

      If you have any more trouble i would just run the page through validator.w3.org as you quite a few other errors on that page.
      • [1] reply
  • <style type="text/css"><!--
    .headline {
    font-family: Tahoma, Verdana;
    font-size: 16pt;
    font-weight: bold;
    }
    --></style>

    the comments you used here in the stylesheet I believe is your problem. Commenting things out in a stylesheet is different than HTML (you use /*font-weight: bold;*/ instead of the standard <!-- comments)
  • Thank you to all replies. I will try them and let you know.
  • Thanks all! Turns out it was not uploaded in html, so Firefox did not recognize. It has been repaired.
    Check it out: Recession Proof Your Income

Next Topics on Trending Feed