have been using no DOCTYPE but rather simply starting with <html> as per HTML5 standards (as I understood them). everything going ok.
began using Jade, which insists on DOCTYPE. using <!DOCTYPE html> - pages no longer render correctly(?).
as an easy and trivial example (behavior is same on firefox and chrome):
<html>
<body >
<div style='height:50%; background-color:pink;'></div>
<div style='height:50%; background-color:blue;'></div>
</body>
</html>
render just fine - have page pink, half blue
<!DOCTYPE html>
<html>
<body >
<div style='height:50%; background-color:pink;'></div>
<div style='height:50%; background-color:blue;'></div>
</body>
</html>
renders two skinny DIV's you can't see.
- what's going on?
- thought
DOCTYPEwas being deprecated for HTML5 - what should I be doing?