Tuesday, June 5, 2012

Quirks mode in IE browser

It has been a problem for developers to have all browsers display their content as they intended it to be.  But, often, challenges are the different browser rendering, and different versions of the browsers doing something else.

The Quirks mode was made for the browser to render a specific page that it thinks isn't created for current html standard.  Often, this is to accommodate the old webpages that have not been updated to current new standard of the W3C specifications.

If you have been trying to create a webpage and the browser often resort to rendering it in Quirks Mode, it is better if you specify the doc type.  It isn't the best solution, but it will tell the browser to present the document or webpage the way you want it to be.

Use the following code on the very top of your page to have it render correctly as you intended it to be:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">


The sources, I used to have the solution are on the following websites:
http://hsivonen.iki.fi/doctype/
http://www.quirksmode.org/css/quirksmode.html

No comments:

Post a Comment