A Little Bit About Doctype
06 Apr 2015As we can imply from the name doctype, it’t the type of the document that’s going to be treated by the User Agents, it appears above the <html>
tag.
There was a time I was creating a new HTML file for IE and when I run the page something unexpected happened, the divs I had originally placed correctlly were in a goddamned mess. What caused this is IE was set to ‘quirks mode’ automatically, after I selected ‘IE 8 document mode’(no joking) everything were back on the way again. So what made IE choose the ‘quirks mode’ for me even I had forced IE to treat it using ‘IE 8’, is I forgot to add the doctype at the beginning of the document.