News for hackers. Stuff that matters.
Re:The minimal code required in a HTML5 page by DiabloD3 on Sunday February 19, 2012 @07:18AM (#3609196)
Wouldn't <html/> be the smallest?
Re:The minimal code required in a HTML5 page by pdw on Sunday February 19, 2012 @08:58AM (#3609343)
The shortest HTML4 (and earlier) document is

  <title//x
This uses the never-implemented but legal shorttag syntax for the required title element, and the "x" character serves as the body content.
Re:The minimal code required in a HTML5 page by tomelders on Sunday February 19, 2012 @08:19AM (#3609275)
I would have thought that

<!DOCTYPE html>0

would be the smallest.

Re:The minimal code required in a HTML5 page by eliam on Sunday February 19, 2012 @07:28AM (#3609206)
Smallest what? There's no DOCTYPE.
Re:The minimal code required in a HTML5 page by knowtheory on Sunday February 19, 2012 @07:44AM (#3609226)
It's worth adding that the DOCTYPE is what specifies what HTML rendering engine IE 7 and 8 use. A document without the DOCTYPE directive will render in quirks mode, and nobody wants that.