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

Posted on 2013-11-26
Last Modified: 2013-11-30
<meta http-equiv="X-UA-Compatible" content="IE=edge">

This is giving me validation errors. I did a google search and as I understand it this just tells previous versions of IE to display using previous standards.

Is this tag really necessary? How would I get it to validate?

I'm going to leave this and focus on my errors. Even if it doesn't validate.
Question by:burnedfaceless
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 58

Expert Comment

ID: 39678828
Strictly speaking it isn't valid.  If you are really pedantic about getting a green passed message in W3C you can pass it in the headers rather than the page.

And edge tells IE to use the latest version not a previous version (compatibility mode)

Author Comment

ID: 39678869
How would I write this to validate, and give the information to internet explorer it needs?

<!--[if IE 6]>
Special instructions for IE 6 here
LVL 58

Expert Comment

ID: 39678881
Not sure what you mean, if you need to add in IE6 specific js or css then you just place it inside the conditional tags.
<!--[if IE 6]>
<script scrc="some.js"></script>
<link media="screen" href="/styles.css" type="text/css" rel="stylesheet">

Open in new window


Author Comment

ID: 39678935
Is it that important that I need to hide it from other browsers (for sake of validation or errors on other browsers) and is it important enough that i.e. needs it?

The comment tags apply to html as well so I could enter the meta tag html into that.

I'm not sure which version to put in the tags because it refers to that version and all previous internet explorer versions.
LVL 58

Accepted Solution

Gary earned 500 total points
ID: 39678970
Other browsers will just ignore it. It's not worth worrying about the validation.
Don't use any version just use IE=edge and it will force the browser to render as the version of IE it is loaded in i.e. in IE9 it will use IE9's rendering engine, in IE8 it will use IE8's - in other words it won't fall into compatibility/quirks mode to display a website.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What cart is this? 2 53
Hta File displays dynamic File names 4 65
PHP Command to Open New Tab/Page using Window.Open 3 30
Horizontal Full Calendar using php 5 38
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question