Re: Updated article: Declaring character encodings in HTML

> Latest versions attached.

Latest comments: ;-)

»»
<h2 id="question"><a href="#question">Question</a></h2>
««
»»
<h2 id="answer"><a href="#answer">Answer</a></h2>
««
»»
<h2 id="detail"><a href="#detail">Details</a></h2>
««
»»
<h2 id="obscure"><a href="#obscure">Additional information</a></h2>
««

Wouldn’t it be better to use the boilerplate for that, as before?

Not only would it make the original articles use the same headings, it 
would make localization easier and more consistent over various 
articles, especially when translated by different translators.


There’s a bigger block of commented-out text in lines 202 to 236 that 
should be deleted from the HTML source.

Hint: Use PHP comments <?php /* … */ ?> instead of HTML comments <!-- … 
--> for cases when you want to temporarily remove text from the article 
but keep it in the source file. Then the block won’t be in the generated 
HTML that will be served over the Web.


Minor things:

»»
<div class="sideinfonote">
««

As in other places and in other articles, use the aside element (also in 
closing tag):

<aside class="sideinfonote">


»»
     <p><b class="leadin">XHTML 1.x served as XML:</b> Use the <span 
class="kw">encoding</span> declaration
««

Use <code class="kw">encoding</code>:

     <p><b class="leadin">XHTML 1.x served as XML:</b> Use the <code 
class="kw">encoding</code> declaration


»»
   <p>HTML5 deprecated the use of the <code class="kw">charset</code> 
attribute on an <span class="kw">a</span> or <span 
class="kw">link</span> element, so you should avoid using it. It 
originated in the HTML&nbsp;4.01 specification for use with the <span 
class="kw">a</span>, <span class="kw">link</span> and <span 
class="kw">script</span> elements and was supposed to indicate the 
encoding of the document you are linking to. </p>
««

Use code elements for all element type names:

   <p>HTML5 deprecated the use of the <code class="kw">charset</code> 
attribute on an <code class="kw">a</code> or <code 
class="kw">link</code> element, so you should avoid using it. It 
originated in the HTML&nbsp;4.01 specification for use with the <code 
class="kw">a</code>, <code class="kw">link</code> and <code 
class="kw">script</code> elements and was supposed to indicate the 
encoding of the document you are linking to. </p>

Cheers,
Gunnar

Received on Wednesday, 19 March 2014 11:34:03 UTC