How do I make IE6 run in strict/standard mode?

Dear Experts!

I am trying to make IE6 run in standard compliance mode.

My page is XHTML strict:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

Anyway, when testing i JavaScript with alert(document.compatMode) it tells me it is running in backCompat mode

What do I do wrong?

Kindly,
Henrik_NyholmAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

khan_webguruCommented:
khan_webguruCommented:
herefore, both Microsoft and Mozilla decided to do something about it. The solution was two different rendering modes: The first mode, known as quirk or compatible mode, renders the pages like the old, incompatible browsers used to. The second mode, known as standard or compliant mode, renders them like the pages should be rendered according to W3C recommendations. The technical details about these modes can be found in the browser documentation mentioned below.

The big question now is: How does the browser decide which rendering mode he will use for a particular page? This question could be answered in a number of ways, of course. Both Microsft and Mozilla decided to use the document type declaration (or the lack thereof): If the document type declaration is of type a, then switch into standard mode. If the document type definition is of type b, or if no document type definition is found, then switch into quirk mode.

reference: http://gutfeldt.ch/matthias/articles/doctypeswitch.html
khan_webguruCommented:
Use like this in your case

 
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
<html xmlns="http://www.w3.org/TR/xhtml1">

Open in new window


reference: http://lists.w3.org/Archives/Public/www-style/2001Aug/0092.html

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.