treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] HTML Validator Error

  • I'm really new to creating/editing HTML and after watching a ton of Treehouse Vids, I've started to tinker with creating my own page.

    Not being very familiar with meta tags I pulled a few from a template I recently purchased. After running my my code through the W3C Markup Validator it came back with the following:

    "Bad value X-UA-Compatible for attribute http-equiv on element meta" in reference to the following:

    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    Based on the above I have a few questions?

    1. Is this something that's just outdated, or is it incorrect..... or other?
    2. What website do you recommend for finding the needed/recommended Meta information?
    3. Unrelated: What website do you recommend for finding the needed/recommended browser compatibility code?

    Thanks :)

  • That's the meta tag to force Chrome Frame in Internet Explorer. It's probably not valid because it's something custom Google have developed
  • You could send this header in your .htaccess instead
    It will still come up with a warning but no error

    <IfModule mod_headers.c>
    Header set X-UA-Compatible "IE=Edge,chrome=1"
    <FilesMatch "\.(js|css|gif|png|jpe?g|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|xpi|safariextz|vcf)$" >
    Header unset X-UA-Compatible
    </FilesMatch>
    </IfModule>