Mozilla has the ability to render "incorrect" HTML pretty well. If you're writing HTML and you include the correct doctypes and all that you can see if Mozilla is handling your page correctly by pressing ctrl+i and looking for the Render Mode.

It should say either "Quirks mode" or "Standards Compliance Mode." You can validate your own HTML from the W3C Validation Service. I highly recommend it!