Both are valid in HTML5, and both are valid in major browsers, so we choose shorter version. And move charset before title, because <title> might contain multibyte string. Ref: https://code.google.com/p/doctype-mirror/wiki/MetaCharsetAttribute