Pages

Thursday, December 15, 2011

How to avoid Quirks mode in IE

Put this line in the first place
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>


Reference:
How to avoid compatibility view and quirk mode in IE?

Put specific HTML standard in DOCTYPE tag
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">