So I have a document that has some display issues, when in compatibility view in IE8, 9, 10. It has the following DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
There is no other metadata in the head.
Now, when I load the page in any of the above versions, the page renders in non-compatibility mode, and displays correctly. But I have other users who are reporting that the page opens in compability mode, and thus displays incorrectly. The problem I have is I can't tell:
What this particular DOCTYPE will tell the browser to do
If my F12 Dev settings have been manually set to non-compatibility mode so it's ignoring the document
If my user's F12 dev settings have been manually set to compatibility mode so it's ignoring the document
So I guess what I need here is to know:
What mode the above DOCTYPE, with no other metadata, will ask the above browsers to do by default
Do changes to the Browser or Document modes in F12 Developer Tools persist over multiple sessions of the browser (such that myself, or my users could be overriding the document)?
What DOCTYPE and metadata I should put in my document to ensure that compatibility mode is not engaged by the above browsers? My understanding from MSDN documentation is that
<!DOCTYPE html>is sufficient?
<!DOCTYPE html>is the HTML5 doctype. - Liam