Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML 5 w3c validation

Tags:

I validated my website using validator.w3.org

It reported the following error:

Line 5, Column 67: Bad value X-UA-Compatible for attribute http-equiv on element meta. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" > 

If I don't include that META tag, than all IE9 visitors will see my website in Quirks mode, and I want to prevent that.

Any help would be greatly appreciated!

like image 678
šljaker Avatar asked Nov 04 '11 11:11

šljaker


People also ask

What is a HTML5 validator?

The basic idea behind HTML5 validation is, that you tell the browser which fields you want validated but don't actually do the tedious implementation yourself. As you define what state your input field is in you also asks the browser to validate the field client-side based on the type of input field.

How do I validate a W3C?

The W3C HTML validatorValidate by URI: Allows you to enter the address of a page already on the internet for validation. Validate by File Upload: Allows you to upload an HTML file for validation. Validate by Direct Input: Allows you to paste the contents of an HTML file into the window for validation.


1 Answers

You could always put the X-UA-Compatible setting into the actual HTTP headers instead. How you do that depends on the web server you are using, and what, if any, server-side framework you are using.

like image 161
Alohci Avatar answered Oct 26 '22 18:10

Alohci