From: Vladimír Vondruš Date: Sun, 29 Oct 2017 20:47:42 +0000 (+0100) Subject: theme: charset meta tag should be first in head. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=5c5800da70ee58890f30bb3130f279a8e119c173;p=blog.git theme: charset meta tag should be first in head. Huh. Makes sense. Reported by https://sonarwhal.com/scanner/. --- diff --git a/doc/css/page-layout.rst b/doc/css/page-layout.rst index 2fd86211..0a1765b9 100644 --- a/doc/css/page-layout.rst +++ b/doc/css/page-layout.rst @@ -45,7 +45,8 @@ more. A barebones HTML markup structure using ``m.css`` looks like below. There is the usual preamble, with :html:`` and a :html:`` tag -specifying the file encoding. Some browsers assume UTF-8 by default (as per the +specifying the file encoding, which should be the first thing in :html:``. +Some browsers assume UTF-8 by default (as per the `HTML5 standard `__), but some not, so it's better to always include it. In the :html:`` element it's important to also specify that the site is responsive via the @@ -61,10 +62,10 @@ have to stick to the shown structure. + Page title -