Solved

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

Posted on 2013-11-26
5
578 Views
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.
0
Comment
Question by:burnedfaceless
[X]
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
5 Comments
 
LVL 58

Expert Comment

by:Gary
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)
0
 

Author Comment

by:burnedfaceless
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
<![endif]-->
0
 
LVL 58

Expert Comment

by:Gary
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">
<![endif]--> 

Open in new window

0
 

Author Comment

by:burnedfaceless
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.
0
 
LVL 58

Accepted Solution

by:
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.
0

Featured Post

Technology Partners: 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

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 …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

632 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