<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
 <!-- page name="index"-->
 <template>
  <do optional="false" label="Back Up" type="accept">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#index"/>
  </do>
 </template>
 <card ordered="true" newcontext="false" id="index">
  <do optional="false" label="Back Up" type="accept">
   <noop/>
  </do>
  <do optional="false" label="Back" type="prev">
   <prev/>
  </do>
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#reference"/>
  </do>
  <a href="#reference" accesskey="1">Page 1</a>
  <br/>
  <a href="#syntax" accesskey="2">Syntax</a>
  <br/>
  <a href="#attributes" accesskey="3">Attributes</a>
  <br/>
  <a href="#examples" accesskey="4">Examples</a>
  <br/>
  <a href="#differences" accesskey="5">Differences</a>
  <br/>
 </card>
 <card ordered="true" newcontext="false" id="reference">
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#syntax"/>
  </do>
  <!-- h3 -->
  <h3>The xml declaration in HTML 5</h3>
  <p>The xml declaration is the first line of code and indicates that the content is a HTML document. </p>
  <p align="left">
   <a href="#syntax">Next: Syntax</a>
   <br/>
   <a href="#index">Back Up: Menu</a>
   <br/>
  </p>
 </card>
 <card ordered="true" newcontext="false" id="syntax">
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#attributes"/>
  </do>
  <!-- h3 -->
  <h3>Syntax of the &lt;?xml?&gt; declaration</h3>
  <p align="left">
   <a href="#attributes">Next: Attributes</a>
   <br/>
   <a href="#reference">Prev: Page 1</a>
   <br/>
   <a href="#index">Back Up: Menu</a>
   <br/>
  </p>
 </card>
 <card ordered="true" newcontext="false" id="attributes">
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#examples"/>
  </do>
  <!-- h4 -->
  <h4>Attributes of the xml declaration</h4>
  <!--TO DO: uses XMLStyles_wml1.xsl - delete XMLStyles_wml.xsl-->
  <p align="left">version attribute</p>
  <p align="left">The version attribute is coded as version="1.0", which indicates the document follows the XML version 1.0 syntax. The document should be coded to be "well-formed", even if it is not an entirely "valid" HTML document. </p>
  <p align="left">encoding attribute</p>
  <p align="left">The encoding attribute indicates what character encoding has been used to encode the HTML document as a file or byte input stream. Most importantly, among other things, this determines how many bytes of raw data are consumed to compose each character of the decoded document. </p>
  <p align="left">
   <a href="#examples">Next: Examples</a>
   <br/>
   <a href="#syntax">Prev: Syntax</a>
   <br/>
   <a href="#index">Back Up: Menu</a>
   <br/>
  </p>
 </card>
 <card ordered="true" newcontext="false" id="examples">
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#differences"/>
  </do>
  <!-- h3 -->
  <h3>Examples of the xml declaration in HTML 5</h3>
  <p>The xml declaration appears at the very beginning of an HTML document: </p>
  <p align="left">&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;?xml-stylesheet type="text/xsl" href="/site-template.xsl"?&gt;&lt;!DOCTYPE html&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; ...&lt;/html&gt;</p>
  <p>It is recommended that the encoding be specified using the preferred (MIME) name as specified in the IANA's <a href="http://www.iana.org/assignments/character-sets">Official Names for Character Sets</a>. Some examples: </p>
  <p align="left">&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;&lt;?xml version="1.0" encoding="US-ASCII"?&gt;&lt;?xml version="1.0" encoding="EUC-JP"?&gt;&lt;?xml version="1.0" encoding="UTF-16"?&gt;&lt;?xml version="1.0" encoding="ISO-10646-UCS-2"?&gt;&lt;?xml version="1.0" encoding="ISO-10646-UCS-4"?&gt;</p>
  <p align="left">
   <a href="#differences">Next: Differences</a>
   <br/>
   <a href="#attributes">Prev: Attributes</a>
   <br/>
   <a href="#index">Back Up: Menu</a>
   <br/>
  </p>
 </card>
 <card ordered="true" newcontext="false" id="differences">
  <!-- h3 -->
  <h3>What's new in HTML 5</h3>
  <!-- h3 -->
  <h3>Differences between HTML 5 and earlier versions</h3>
  <p>The xml declaration does not appear in HTML documents conforming to the 1997 HTML version 4 standard. For 2000 and later XHTML 1.x documents, the xml declaration was optional. For HTML version 5 documents, it's use is highly recommended. </p>
  <p align="left">
   <a href="#examples">Prev: Examples</a>
   <br/>
   <a href="#index">Back Up: Menu</a>
   <br/>
  </p>
 </card>
</wml>

