| 53 |
encoding declaration. The document is non‐conforming.</p> |
encoding declaration. The document is non‐conforming.</p> |
| 54 |
|
|
| 55 |
<p>The long character encoding declaration syntax |
<p>The long character encoding declaration syntax |
| 56 |
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
| 57 |
is obsolete. The new syntax is:</p> |
is obsolete. The new syntax is:</p> |
| 58 |
<pre class="html example"> |
<pre class="html example"> |
| 59 |
<code><meta charset="<var>charset-name</var>"></code></pre> |
<code><meta charset="<var>charset-name</var>"></code></pre> |
| 60 |
|
|
| 61 |
<p>Note that the <code>encoding</code> declaration in <abbr>XML</abbr> |
<p>Note that the <code>encoding</code> declaration in <abbr>XML</abbr> |
| 62 |
declaration has no effect for <abbr>HTML</abbr> document.</p> |
declaration has no effect for <abbr>HTML</abbr> document.</p> |
| 79 |
<code>Content-Type: text/html; charset=<var>charset-name</var></code></pre> |
<code>Content-Type: text/html; charset=<var>charset-name</var></code></pre> |
| 80 |
|
|
| 81 |
<p>Existence of <abbr>HTML</abbr> character encoding declaration, i.e. |
<p>Existence of <abbr>HTML</abbr> character encoding declaration, i.e. |
| 82 |
<code class="html example"><meta charset="<var>charset-name</var>"></code>, |
<code class="html example"><meta charset="<var>charset-name</var>"></code>, |
| 83 |
does not allow to omit <code>charset</code> parameter |
does not allow to omit <code>charset</code> parameter |
| 84 |
for <abbr>HTML</abbr> document encoded in non‐<abbr>ASCII</abbr> |
for <abbr>HTML</abbr> document encoded in non‐<abbr>ASCII</abbr> |
| 85 |
compatible encoding.</p> |
compatible encoding.</p> |
| 109 |
<li>Specify <code>charset</code> parameter in the <code>Content-Type</code> |
<li>Specify <code>charset</code> parameter in the <code>Content-Type</code> |
| 110 |
field in the <abbr>HTTP</abbr> header, as: |
field in the <abbr>HTTP</abbr> header, as: |
| 111 |
<pre class="HTTP example"> |
<pre class="HTTP example"> |
| 112 |
<code>Content-Type: text/html; charset="<var>charset-name</var>"</code></pre></li> |
<code>Content-Type: text/html; charset="<var>charset-name</var>"</code></pre></li> |
| 113 |
<li>Put the character encoding declaration |
<li>Put the character encoding declaration |
| 114 |
(<code class="html example"><meta charset="<var>charset-name</var>"></code>) |
(<code class="html example"><meta charset="<var>charset-name</var>"></code>) |
| 115 |
just after <code class="html example"><head></code> start tag.</li> |
just after <code class="html example"><head></code> start tag.</li> |
| 116 |
<li>Use <code>UTF-8</code>.</li> |
<li>Use <code>UTF-8</code>.</li> |
| 117 |
</ul> |
</ul> |
| 410 |
<code>alternate stylesheet</code> for an alternate style |
<code>alternate stylesheet</code> for an alternate style |
| 411 |
sheet). |
sheet). |
| 412 |
<pre class="example html"> |
<pre class="example html"> |
| 413 |
<code><link rel=stylesheet href="path/to/stylesheet.css"></code></pre> |
<code><link rel=stylesheet href="path/to/stylesheet.css"></code></pre> |
| 414 |
</dd> |
</dd> |
| 415 |
<dt><code><?php?></code> or |
<dt><code><?php?></code> or |
| 416 |
<code><? <var>... <abbr>PHP</abbr> code ...</var> ?></code> |
<code><? <var>... <abbr>PHP</abbr> code ...</var> ?></code> |
| 738 |
<dd><p>In <abbr>XHTML</abbr> document, the root <code>html</code> |
<dd><p>In <abbr>XHTML</abbr> document, the root <code>html</code> |
| 739 |
element must have an <code>xmlns</code> attribute as: |
element must have an <code>xmlns</code> attribute as: |
| 740 |
<pre class="xml example"> |
<pre class="xml example"> |
| 741 |
<code><html xmlns="http://www.w3.org/1999/xhtml"></code></pre></p></dd> |
<code><html xmlns="http://www.w3.org/1999/xhtml"></code></pre></p></dd> |
| 742 |
<dt><code>rss</code> element</dt> |
<dt><code>rss</code> element</dt> |
| 743 |
<dd><p>The document is written in some version of RSS.</p> |
<dd><p>The document is written in some version of RSS.</p> |
| 744 |
<p>The conformance checker does not support any version |
<p>The conformance checker does not support any version |
| 748 |
in the <code>http://www.w3.org/2005/Atom</code> |
in the <code>http://www.w3.org/2005/Atom</code> |
| 749 |
namespace as: |
namespace as: |
| 750 |
<pre class="xml example"> |
<pre class="xml example"> |
| 751 |
<code><feed xmlns="http://www.w3.org/2005/Atom"></code></pre> |
<code><feed xmlns="http://www.w3.org/2005/Atom"></code></pre> |
| 752 |
</p> |
</p> |
| 753 |
<p>The conformance checker does not support Atom 0.3. |
<p>The conformance checker does not support Atom 0.3. |
| 754 |
Use Atom 1.0 for feed documents.</p></dd> |
Use Atom 1.0 for feed documents.</p></dd> |
| 833 |
<p>To specify the character encoding used for serialization, |
<p>To specify the character encoding used for serialization, |
| 834 |
if necessary, use XML declaration instead: |
if necessary, use XML declaration instead: |
| 835 |
<pre class="xml example"> |
<pre class="xml example"> |
| 836 |
<code><?xml version="1.0" encoding="<var>encoding-name</var>"?></code></pre> |
<code><?xml version="1.0" encoding="<var>encoding-name</var>"?></code></pre> |
| 837 |
</p> |
</p> |
| 838 |
</div> |
</div> |
| 839 |
|
|
| 948 |
<p>Value <code>Content-Type</code> is obsolete; for charset |
<p>Value <code>Content-Type</code> is obsolete; for charset |
| 949 |
declaration, the <code>charset</code> attribute can be used as: |
declaration, the <code>charset</code> attribute can be used as: |
| 950 |
<pre class="html example"> |
<pre class="html example"> |
| 951 |
<code><meta charset="<var>charset-name</var>"></code></pre> |
<code><meta charset="<var>charset-name</var>"></code></pre> |
| 952 |
... where <var>charset-name</var> is a name of the character encoding |
... where <var>charset-name</var> is a name of the character encoding |
| 953 |
of the document, such as <code>utf-8</code>.</p> |
of the document, such as <code>utf-8</code>.</p> |
| 954 |
<p>Values <code>Content-Style-Type</code> and |
<p>Values <code>Content-Style-Type</code> and |
| 963 |
</div> |
</div> |
| 964 |
|
|
| 965 |
<div class="section attribute-value-error" id="enumerated:invalid:http-equiv:content-type"><h3>Character encoding declaration syntax |
<div class="section attribute-value-error" id="enumerated:invalid:http-equiv:content-type"><h3>Character encoding declaration syntax |
| 966 |
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
| 967 |
is obsolete.</h3> |
is obsolete.</h3> |
| 968 |
<p>Old long character encoding declaration syntax |
<p>Old long character encoding declaration syntax |
| 969 |
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
| 970 |
is in use. The document is non‐conforming.</p> |
is in use. The document is non‐conforming.</p> |
| 971 |
|
|
| 972 |
<p>The new character encoding declaration syntax is: |
<p>The new character encoding declaration syntax is: |
| 973 |
<pre class="html example"> |
<pre class="html example"> |
| 974 |
<code><meta charset="<var>charset-name</var>"></code></pre> |
<code><meta charset="<var>charset-name</var>"></code></pre> |
| 975 |
</p> |
</p> |
| 976 |
</div> |
</div> |
| 977 |
|
|
| 1299 |
|
|
| 1300 |
|
|
| 1301 |
|
|
| 1302 |
|
|
| 1303 |
|
|
| 1304 |
|
|
| 1305 |
|
|
| 1306 |
|
|
| 1307 |
|
|
| 1308 |
|
|
| 1309 |
|
|
| 1310 |
|
|
| 1311 |
|
|
| 1312 |
|
|
| 1313 |
|
|
| 1314 |
|
|
| 1315 |
|
|
| 1316 |
|
|
| 1317 |
|
|
| 1318 |
|
|
| 1319 |
|
|
| 1320 |
|
|
| 1321 |
|
|
| 1322 |
|
|
| 1323 |
|
|
| 1324 |
|
|
| 1325 |
|
|
| 1326 |
|
|
| 1327 |
|
|
| 1328 |
|
|
| 1329 |
|
|
| 1330 |
|
|
| 1331 |
|
|
| 1332 |
|
|
| 1333 |
|
|
| 1334 |
|
|
| 1335 |
|
|
| 1336 |
|
|
| 1337 |
|
|
| 1338 |
|
|
| 1339 |
|
|
| 1340 |
|
|
| 1341 |
|
|
| 1342 |
|
|
| 1343 |
|
|
| 1344 |
|
|
| 1345 |
|
|
| 1346 |
|
|
| 1347 |
|
|
| 1348 |
|
|
| 1349 |
|
|
| 1350 |
|
|
| 1351 |
|
|
| 1352 |
|
|
| 1353 |
|
|
| 1354 |
|
|
| 1355 |
|
|
| 1356 |
|
|
| 1357 |
|
|
| 1358 |
|
|
| 1359 |
|
|
| 1360 |
|
|
| 1361 |
|
|
| 1362 |
|
|
| 1363 |
|
|
| 1364 |
|
|
| 1365 |
|
|
| 1366 |
|
|
| 1367 |
|
|
| 1368 |
|
|
| 1369 |
|
|
| 1370 |
|
|
| 1371 |
|
|
| 1372 |
|
|
| 1373 |
|
|
| 1374 |
|
|
| 1375 |
|
|
| 1376 |
|
|
| 1377 |
|
|
| 1378 |
|
|
| 1379 |
|
|
| 1380 |
|
|
| 1381 |
|
|
| 1382 |
|
|
| 1383 |
|
|
| 1384 |
|
|
| 1385 |
|
|
| 1386 |
|
|
| 1387 |
|
|
| 1388 |
|
|
| 1389 |
|
|
| 1390 |
|
|
| 1391 |
|
|
| 1392 |
|
|
| 1393 |
|
|
| 1394 |
|
|
| 1395 |
|
|
| 1396 |
|
|
| 1397 |
|
|
| 1398 |
|
|
| 1399 |
|
|
| 1400 |
|
|
| 1401 |
|
|
| 1402 |
|
|
| 1403 |
|
|
| 1404 |
<section id="levels"> |
<section id="levels"> |
| 1405 |
<h2>Error Levels</h2> |
<h2>Error Levels</h2> |
| 1406 |
|
|