Forum Moderators: open
I tried both the HTML 4.01 strict and the transitional:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Thanks
D O N
[validator.w3.org...]
The only thing similar is overflow [w3.org].
If its working without the doctype then it could be that it is a non-standard browser-specific extension (by Micro$oft no doubt) that gets ignored when not in 'quirks' mode.
And as DrDoc says, if it's not that, then it's something else ;)
A recent DOCTYPE that includes a full URI (a complete web address) tells these browsers to render your page in standards–compliant mode, treating your (X)HTML, CSS, and DOM as you expect them to be treated.
Using an incomplete or outdated DOCTYPE—or no DOCTYPE at all—throws these same browsers into “Quirks” mode, where the browser assumes you’ve written old-fashioned, invalid markup and code per the depressing industry norms of the late 1990s.
As far as I know, the transitional doctype just allows you to continue using visual formatting elements and attributes in your html documents (such as align="center", valign etc).