Do you have experience in web development and a passion for writing articles? If so, you might want to contact us. Learn more »

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


About this article: Posted in: Learned along the way
By: Blockcoder ( Admin ) / 12.08.2013
Stats: Comments Off / Views: 337
Tags: ,

Bad value X-UA problem

When you are using the tag “X-UA-Compatible” meta in header-file, you might had been forced to conquer this “problem” when validating your site using W3Schools. Well, I had.

There is a short solution

You can to comment the original line and test it by yourself. You can send these meta value with PHP via HTTP headers instead. That’s it!

<?php header('X-UA-Compatible: IE=edge,chrome=1'); ?>
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />-->

Now validate your code!