How to turn off and disable the IE quirks mode

Written by alan sembera Google
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to turn off and disable the IE quirks mode
Web designers must pay close attention to how their pages are displayed on different browsers. (Thinkstock Images/Comstock/Getty Images)

In the past, many Web browsers did not conform to industry standards in the way they displayed World Wide Web content. Many older websites were written to be displayed by the older, non-standard browsers. To display these older websites properly, newer versions of Internet Explorer and other browsers have a "quirks" mode that causes them to emulate the older browsers. A browser displaying in quirks mode, however, will not properly display many modern websites. To prevent a page from being viewed in quirks mode, it is up to the Web developer to insert the proper code at the top of the Web page.

Skill level:

Other People Are Reading


  1. 1

    Remove any XML declarations from the top of your HTML code. These will automatically trigger quirks mode in Internet Explorer 6.

  2. 2

    Put a standard DTD (document type definition) declaration at the top of your HTML code. Here are two declarations that will cause Internet Explorer to go into standard mode instead of quirks mode:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"


    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"


  3. 3

    Remove any other code that appears before the DTD declaration, including comments.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.