3 ms·
The original post specifically mentions dropping the doctype which is not valid. It also implies that you can drop all (or at least many) closing tags without s
by SahAssar 7y ago
The original post specifically mentions dropping the doctype which is not valid. It also implies that you can drop all (or at least many) closing tags without saying that some are optional and some are not.
- johncmouser 7y agowould you need the doctype if the user-agent said it was html5 compliant?
- SahAssar 7y agoThe doctype is required for it to be a valid html5 document.
- recursive 7y agoYes. Especially then. Without a doctype, it's not html5.
- pzmarzly 7y 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...