Different browser modes

To ensure backward compatibility with older browsers, browser creators had different modes for sites that work for different browser specifications

* Standard mode in Browser:
Browser renders a page according to the specifications set

* Quirks mode in Browser:
Browser loosely renders the page and manipulates the box model differently which happens to be in sites built for IE 5.5 (and lesser versions) or Opera 7 browsers

* Almost standard mode in Browser:This is a mode in Firefox/Safari browsers where they handle the tables quite differently from standard mode

The DOCTYPE declaration in the top of the html pages sets the different browser modes. This should be formed correctly in order to expect the browser to render pages according to our expectation. A transition DTD without a URI will cause the page to be in quirks mode and hence it is necessary that the URI be present when a transition DTD is being used.

Remember that DOCTYPE should be the first line of the page.