HTML5 CharSet

approg
approg Community Member Posts: 258 ♪ Opening Act ♪
 

In HTML a valid meta element for charset is

<meta charset="utf-8">

The one that Lectora is still using is

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

which is invalid in HTML5. Maybe it's time to fix this?

Comments

  • klaatu
    klaatu Community Member Posts: 988
    ..
  • t_johnb
    t_johnb [email protected] Community Member Posts: 295 ☆ Roadie ☆
    You are correct that HTML allows for the new, shorter charset declaration, but it does not deprecate the previous declaration, both are legal. Also, Lectora content does still run on browsers that do not support HTML 5 (IE8-IE9) so the current declaration is preferred.
  • approg
    approg Community Member Posts: 258 ♪ Opening Act ♪
    If you say so though this page https://developer.mozilla.org/en/docs/Web/HTML/Element/meta  states, near the bottom of the page, that this format
    <pre class="brush: html line-numbers language-html"><code class=" language-html"><span class="token tag"><span class="token punctuation"><</span>meta <span class="token attr-name">http-equiv</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>Content-Type<span class="token punctuation">"</span></span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>text/html; charset<span class="token punctuation">=</span>utf-8<span class="token punctuation">"</span></span><span class="token punctuation">>

    is invalid in HTML 5.</span></span>
  • approg
    approg Community Member Posts: 258 ♪ Opening Act ♪
    Oops the forum software has sanitised

    <meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />