Link to home
Start Free TrialLog in
Avatar of sanagarwl
sanagarwl

asked on

<!DOCTYPE html>

Some of my users while viewing in IE9 are having the document mode set to IE7 with browser mode set to IE9 compatibility view. This is causing a few columns to render incorrectly. Issue is with IE7 not following colspan the way it should.

Anyways, I plan on setting the <!DOCTYPE html> and of course now IE 9 renders in standard mode and all is well.

my question is that is there any downside to this?
Avatar of Brian Pringle
Brian Pringle
Flag of United States of America image

You should always clarify which HTML standard you are using.  It is good form and helps to ensure that your document will get rendered correctly.  

The downside is that not all browsers render different versions of HTML correctly.  Your site may still look different on different browsers and/or different platforms.
SOLUTION
Avatar of Brian Pringle
Brian Pringle
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sanagarwl
sanagarwl

ASKER

Thanks

So how do I get IE9 to render in document mode IE9 rather then flipping back to ie7

With DOcTYPE HTML it works fine on IE9 it prevents it from going back to ie7 document mode
The best thing to do is use the W3C Validator at http://validator.w3.org/ to make sure your page is conforming to the DOCTYPE that you have chosen.
Thanks

The site is under development and is within the corporate network - any other way I can validate ?
There are three options on that page.  One is to copy and paste the "View Source" of the page into a window on one of the tabs.