Solved

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

Posted on 2013-11-26
5
562 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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

830 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