Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 doctype putting IE9 into quirks mode?

I'm trying to get IE9 to load my page with IE9 standards...

I noticed having <!DOCTYPE HTML> puts the damn thing into quirks mode... Which pretty much breaks everything on page...

How do I get IE to stick to IE9 Standards?

like image 548
Abhishek Avatar asked Jun 30 '11 03:06

Abhishek


People also ask

How do I turn on quirks mode?

Make sure you put the DOCTYPE right at the beginning of your HTML document. Anything before the DOCTYPE, like a comment or an XML declaration will trigger quirks mode in Internet Explorer 9 and older. In HTML5, the only purpose of the DOCTYPE is to activate full standards mode.

What is quirks mode in HTML5?

Quirks mode means your page is running without a document type declared, the document type is defined at the very top of a page and it denotes how the browser should read the HTML.

What is the difference between standard mode and quirk mode What role does the DOCTYPE play with these modes?

To maintain compatibility with the greatest possible number of web pages, modern web browsers are generally developed with multiple rendering modes: in "standards mode" pages are rendered according to the HTML and CSS specifications, while in "quirks mode" attempts are made to emulate the behavior of older browsers.


1 Answers

Placing:

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 

in the <head> tag should do it.

like image 132
David Wick Avatar answered Nov 10 '22 01:11

David Wick