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
Remove any XML declarations from the top of your HTML code. These will automatically trigger quirks mode in Internet Explorer 6.
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"
Remove any other code that appears before the DTD declaration, including comments.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for