News for hackers. Stuff that matters.
Re:HTML5 Boilerplate - A rock-solid default template for HTML5 by sbierwagen on Monday March 21, 2011 @01:48PM (#2350773)
I see it uses <head> and <body>, which, in fact, are not required. Pages without them pass W3C validation without warnings.
Re:HTML5 Boilerplate - A rock-solid default template for HTML5 by paulirish on Monday March 21, 2011 @02:11PM (#2350890)
From a validation perspective you're totally right.

But browsers are supposed to create HEAD and BODY elements if your markup doesn't include them. However some do not: http://www.stevesouders.com/blog/2010/05/12/autohead-my-firs...

This means everyone's code that does `document.getElementsByTagName('head')[0]` will fail in some cases. Because that is rather risky, we decided to retain these optional elements..

The closing tags for </body> and </html> however...

Re:HTML5 Boilerplate - A rock-solid default template for HTML5 by bradleyland on Monday March 21, 2011 @02:05PM (#2350865)
Yes, but why are head and body not required? Just because a page validates without them does not make them superfluous in all cases.