Recently I had a job interview and one of the questions was "Is doctype needed for HTML 5 documents?". I've answered "no" but have a feeling that I might be wrong. From the w3 it looks like it is absolutely required, but if I type a simple HTML like
<html> <body> <input type="color" disabled/> </body> </html>
save it as HTML and try to open in Chrome - it would work perfectly well, with a new color input (disabled). That input is HTML5 as well as attribute.
So the question is - do I need to specify doctype or not? What would be the correct answer for the interview?