Skip to content

Commit

Permalink
Reorder html5 document template (#393)
Browse files Browse the repository at this point in the history
The encoding `<meta charset="UTF-8>` is usually declared before any text-containing elements such as the `<title>`.

p.s. Emmet follows this ordering too
  • Loading branch information
ye-chuan committed Feb 12, 2024
1 parent 4368924 commit 7d5f845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/html.json
Expand Up @@ -311,9 +311,9 @@
"<!DOCTYPE html>",
"<html lang=\"$1en\">",
"\t<head>",
"\t\t<title>$2</title>",
"\t\t<meta charset=\"UTF-8\">",
"\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">",
"\t\t<title>$2</title>",
"\t\t<link href=\"$3css/style.css\" rel=\"stylesheet\">",
"\t</head>",
"\t<body>",
Expand Down

0 comments on commit 7d5f845

Please sign in to comment.