Hello everyone, I just made a phproxy template. Every browser is OK except IE6/5. IE6 shows it as pure xml codes but other browsers like firefox and opera show the correct html page. I don't know why. Help me please. Thanks. The url is: http://demo.ixmv.com/preview/firming/ Krute
First off, remove the XML declaration at the top of the page. That's going to throw IE into Quirks Mode. Second, move the comments out from between the DOCTYPE and the opening HTML tag.
You should still remove this <?xml version="1.0" encoding="utf-8"?> From the top of your page. Your page isn't xml so there is really no use for that.
The main reason actually being that ANYTHING (even white space) above the DOCTYPE will throw IE 6 into Quirks Mode.
Yeah nothing should be above the doctype after it's been parsed. Still though there is no need for the xml tag if the page isn't actually xml. I think I read somewhere the google also ranks your site worse if there are errors in the code. I guess he could keep it but it's bad practice to leave it there.
I've read that in a few different sources but I'm not sure what to believe anymore. It would make sense though from google standpoint. I don't think anyone really knows what all google uses to rank sites though.
I'm on my phone right now but I will check it out when I get home. I'm pretty sure I know what it is though but I like suprises lol.
He basically says that Google won't penalize for invalid markup, but that the technology does exist to detect invalid code and that the company may choose to incorporate it into the algorithm in the future (though he doesn't sound very enthusiastic about it).
Gotcha it would make sense to include it though. Having a good markup is the basis for a good website. It's like a house you can't have a nice house that's built on a bad foundation. Good stuff though rep added.
You're preaching to the choir, Dave. I'm a Web developer that focuses on accessibility, clean minimal semantic and valid markup, SEO and usability by trade.