Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
DiabloD3
· 14y ago · 0 comments
Wouldn't <html/> be the smallest?
Comments
[–]
pdw
14y ago
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.
[–]
tomelders
14y ago
I would have thought that
<!DOCTYPE html>0
would be the smallest.
[–]
eliam
14y ago
Smallest what? There's no DOCTYPE.
[–]
knowtheory
14y ago
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.