Posted on 2011-04-28
Last Modified: 2012-05-11
I have a wordpress website which insert the below code:

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

What does the code actually do?

Also when I validate my website I am getting the following error message:

Bad value X-UA-Compatible for attribute http-equiv on element meta.

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

How do I fix it?
Question by:petewinter
    LVL 12

    Expert Comment

    The code tells the browser to render the page using the IE7 standards mode.  You can wrap it in
    IE conditional comments to keep it from being evaluated by programs that don't recognize the tag.

    Author Comment

    Thanks Amick, but what is IE7 standards mode?

    Can you show me the suggested IE conditional comments to wrap the code?

    LVL 12

    Accepted Solution

    To elaborate on my previous comment:

    <!--[if IE]>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

    The meta tag is explained more completely here:
    LVL 27

    Expert Comment

    by:Lukasz Chmielewski

    Author Closing Comment

    Perfect. Many thanks for your help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: Create Mobile App Prototypes with Adobe XD

    This is a project-based course: we go through all the steps of creating a prototype from start to finish, using all the tools and features currently available in Adobe XD. You can complete the course in less than a day, plus all project files and fonts are included.

    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
    In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
    In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now