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!
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With