<!DOCTYPE html> | |
<title>␣</title> |
Oops. :)
@j9t There is a shorter version (if we’re allowing parse errors, which user agents do)! You don’t need the space between DOCTYPE
and html
! https://html.spec.whatwg.org/multipage/parsing.html#doctype-state
<!DOCTYPEhtml>
<title>␣</title>
@wooorm, interesting! Yet I read the spec that there must be either of U+0009, U+000A, U+000C, or U+0020, and not no character to proceed. Which would be backed by validation of the snippet. Although a version without a space would be shorter (and likewise one without a line break between DOCTYPE and title
, I might for once vote for leaving those characters :)
Right, that is reasonable! <div id=a id=b>
is a parse error, but works the same in browsers following the spec)
Also, gzipped doctype
saves 2 bytes over DOCTYPE
.
You are missing
<!-- TADA! -->