Page display bug in Opera
Posted: Wed Apr 19, 2006 7:47 pm
The page is displayed very bad in Opera. I know the reason: the page does not have a valid doctype. The first line of homepage source says:But this is an invalid doctype. Just change this line to:And Opera browser will display it much better.
The reason is that an invalid doctype will trigger "Quirks mode" in Opera, so it will try to "emulate" other browsers bugs. The complete description of how it works is decribed at Opera documentation.
Code: Select all
<!DOCTYPE HTML SYSTEM>
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
The reason is that an invalid doctype will trigger "Quirks mode" in Opera, so it will try to "emulate" other browsers bugs. The complete description of how it works is decribed at Opera documentation.