2 ms·
would you need the doctype if the user-agent said it was html5 compliant?
by johncmouser 6y ago
would you need the doctype if the user-agent said it was html5 compliant?
- SahAssar 6y agoThe doctype is required for it to be a valid html5 document.
- recursive 6y agoYes. Especially then. Without a doctype, it's not html5.
- pzmarzly 6y agoWithout doctype, browsers will render your page in quirks mode, leaving you scratching your head because of margins being set out of nowhere. https://developer.mozilla.org/en-US/docs/Mozilla/Mozilla_quirks_mode_behavior https://developer.mozilla.org/en-US/docs/Mozilla/Mozilla_qui...