Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For some reason, no matter what document type I'm using Internet Explorer will open all my HTML files as a Default Internet Explorer 7 Document Type. If I upload these HTML files to a server they'll show up just fine. Is there some kind of setting in Internet Explorer or meta tag I need? Doc Types I've tried, which again work when uploaded to a server but not locally (IE Only)

<!DOCTYPE html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

Here's what my dev tools tells me:

enter image description here

share|improve this question
Are you on a domain? Have you checked Compatibility settings for "intranet" zones? – Ƭᴇcʜιᴇ007 Apr 10 '14 at 17:20
Under zones I'm just on Internet, not local or anything – Howdy_McGee Apr 10 '14 at 17:31
Have you tried resetting IE to defaults? – Moses Apr 10 '14 at 18:12

It sounds like you are displaying local files in Compatibility view. In IE, go to Tools/Compatibility View Settings. Check to ensure that your local server is not in the list of sites to display in Compatibility view. Also, ensure that the "display intranet sites in Compatibility View" checkbox is unchecked.

There is also a way to ensure IE does not display in Compatibility view by using the following vendor specific meta tag in the html head:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

You can read more about that here

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .