Perfer to use <meta charset="utf8">.

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
This commit is contained in:
Gea-Suan Lin 2013-07-20 23:42:24 +08:00
parent e9173d2737
commit 5a95942a8a

View File

@ -6,8 +6,8 @@ snippet html5
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<meta charset="utf-8">
<title>$2</title> <title>$2</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
$3 $3
</head> </head>
<body> <body>