Try <h1 style="margin:0;"> -- or better still, add the same rule to an external css file if you have one.

It sounds like a Quirks Mode vs. Standards Mode [webmasterworld.com] issue. The full DTD switches modern browsers into standards mode and IE (even version 6) is pretty far from standards, so you only see this in newer browsers.