Y
Hacker News
new
|
ask
|
show
|
jobs
by
johncmouser
2238 days ago
would you need the doctype if the user-agent said it was html5 compliant?
3 comments
pzmarzly
2238 days ago
Without 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_qui...
link
SahAssar
2238 days ago
The doctype is required for it to be a valid html5 document.
link
recursive
2238 days ago
Yes. Especially then. Without a doctype, it's not html5.
link
https://developer.mozilla.org/en-US/docs/Mozilla/Mozilla_qui...