January 2018
Intermediate to advanced
332 pages
7h 36m
English
Have you ever wondered why we have <!DOCTYPE html> at the top of our page? We can clearly leave it out, and still the page seems to work. Then, why exactly do we need this? The answer is avoiding backward compatibility—if we do not specify the DOCTYPE, the browser that is interpreting and rendering our HTML goes into quirks mode, which is a technique to support really old websites that were built with outdated versions and markups of HTML, CSS, and JS. Quirks mode emulates a lot of bugs that existed in the older versions of the browsers, and we do not want to deal with those.
Read now
Unlock full access