<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/styles/XMLStylesDoc_xhtml10_en.xsl"?><!DOCTYPE document SYSTEM "/schemas/XMLStyles10.dtd">
<document xmlns="http://XMLStyles.com/namespaces/styles" xmlns:xst="http://XMLStyles.com/namespaces/styles" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:date="http://exslt.org/dates-and-times">
   <noxml>
      <p xmlns="http://www.w3.org/1999/xhtml"/>
      <!-- You are viewing the source.  The following message should be ignored if you did "View Source" in your browser. -->
      <p xmlns="http://www.w3.org/1999/xhtml">
ATTENTION: XML WEB PAGES NOT SUPPORTED
   If you see this message, your current browser does not support the
   1999 XSLT 1.0 (or later) standard for XML web pages such as this one.
   Please upgrade your browser to a newer version
   that supports 1999 or later standards such as:
      Mozilla Firefox version 1.0.2 or later (GetFirefox -&gt; http://www.GetFirefox.com/)
      Netscape version 8 or later
      Safari version 1.3 or later
      Opera version 9 or later
      Microsoft Internet Explorer (MSIE) version 5 or later
   For further assistance, contact the software vendor for your browser.
   To go to the X<!-- extended HTML -->HTML version of this page click the following link:
<a href="index.html">index.html</a>
      </p>
      <p xmlns="http://www.w3.org/1999/xhtml">&#160;</p>
   </noxml>
   <path>/tutorials/</path>
   <site>HTML 5 Reference</site>
   <logo xlink:type="simple" xlink:href="/images/html-5.jpg" media="screen" width="156" height="27">HTML 5 Reference</logo>
   <logo xlink:type="simple" xlink:href="/images/html-5.jpg" media="print" width="156" height="27">HTML 5 Reference</logo>
   <logo xlink:type="simple" xlink:href="/images/html-5.jpg" media="handheld" width="150" height="17">HTML 5 Reference</logo>
   <navigation where="sections">
      <label>HTML 5 Reference</label>
      <link xlink:type="simple" xlink:href="/index.xml">Home</link>
      <link xlink:type="simple" xlink:href="/tutorial/index.xml">Tutorial</link>
      <link xlink:type="simple" xlink:href="/tags/index.xml">HTML5 Tags</link>
      <link xlink:type="simple" xlink:href="/attributes/index.xml">Attributes</link>
      <link xlink:type="simple" xlink:href="/css-styles/index.xml">CSS Styles</link>
      <link xlink:type="simple" xlink:href="/metatags/index.xml">Metatags</link>
      <link xlink:type="simple" xlink:href="/cheat-sheet/index.xml">Cheat Sheet</link>
      <link xlink:type="simple" xlink:href="/examples/index.xml">Examples</link>
      <link xlink:type="simple" xlink:href="/definitions/index.xml">Definitions</link>
      <link xlink:type="simple" xlink:href="/diffs/index.xml">Differences</link>
      <link xlink:type="simple" xlink:href="/avoid/index.xml">Avoid</link>
      <link xlink:type="simple" xlink:href="/faqs/index.xml">HTML5 FAQs</link>
      <link xlink:type="simple" xlink:href="/prod/rssfeeds.cgi">RSS Feeds</link>
      <link xlink:type="simple" xlink:href="/prod/help/index.cgi">Help</link>
   </navigation>
   <navigation where="left">
      <label>HTML 5 Reference</label>
      <link xlink:type="simple" xlink:href="/tutorial/index.xml">HTML Tutorial</link>
      <link xlink:type="simple" xlink:href="/tags/index.xml">HTML 5 Tags</link>
      <link xlink:type="simple" xlink:href="/attributes/index.xml">HTML Attributes</link>
      <link xlink:type="simple" xlink:href="/css-styles/index.xml">CSS Styles</link>
      <link xlink:type="simple" xlink:href="/metatags/index.xml">HTML Metatags</link>
      <link xlink:type="simple" xlink:href="/cheat-sheet/index.xml">Cheat Sheet</link>
      <link xlink:type="simple" xlink:href="/examples/index.xml">HTML Examples</link>
      <link xlink:type="simple" xlink:href="/definitions/index.xml">Definitions</link>
      <link xlink:type="simple" xlink:href="/diffs/index.xml">HTML 5 Changes</link>
      <link xlink:type="simple" xlink:href="/avoid/index.xml">Things to Avoid</link>
      <link xlink:type="simple" xlink:href="/faqs/index.xml">HTML 5 FAQs</link>
      <link xlink:type="simple" xlink:href="/prod/help/index.cgi">Help</link>
      <link xlink:type="simple" xlink:href="/prod/help/index.cgi?p=about">About</link>
   </navigation>
   <section id="body" type="body">
      <pages name="index">
         <navigation where="pages">
            <label>index</label>
            <link xlink:type="simple" xlink:href="index.xml">index</link>
            <link xlink:type="simple" xlink:href="page-structure.xml">Tutorial</link>
            <link xlink:type="simple" xlink:href="style-sheets.xml">Style Sheets</link>
            <link xlink:type="simple" xlink:href="html-templates.xml">XSLT Style Sheets</link>
            <link xlink:type="simple" xlink:href="css-stylesheets.xml">CSS StyleSheets</link>
            <link xlink:type="simple" xlink:href="namespaces.xml">Namespaces</link>
            <link xlink:type="simple" xlink:href="sections.xml">Sections</link>
            <link xlink:type="simple" xlink:href="style-tags.xml">Style Tags</link>
            <link xlink:type="simple" xlink:href="lists.xml">Lists</link>
            <link xlink:type="simple" xlink:href="groups.xml">Groups</link>
            <link xlink:type="simple" xlink:href="acronyms.xml">Acronyms</link>
            <link xlink:type="simple" xlink:href="times.xml">Dates/Times</link>
            <link xlink:type="simple" xlink:href="tables.xml">Tables</link>
            <link xlink:type="simple" xlink:href="forms.xml">Forms</link>
            <link xlink:type="simple" xlink:href="gauges.xml">Gauges</link>
         </navigation>
         <page id="namespaces" name="namespaces">
            <label>Namespaces</label>
            <title>http://www.w3.org/1999/xhtml and other HTML Namespaces</title>
            <h3>Namespaces in HTML 5</h3>
            <h3>Converting to HTML 5</h3>
            <p>We are working on <link xlink:type="simple" xlink:href="converting-to-html-5.html">converting to HTML 5</link>.
               Please visit <link xlink:type="simple" xlink:href="html-namespaces.html">http://www.w3.org/1999/xhtml and other HTML Namespaces</link> on the
               <link xlink:type="simple" xlink:href="http://www.HTML-5.com/index.html">HTML 5 standard</link> version of this site.
            </p>
            <p>Commonly used namespaces in HTML include:
            </p>
            <dl>
               <di id="xml">
                  <dt>http://www.w3.org/XML/1998/namespace</dt>
                  <dd>the XML namespace; implicitly declared
                  </dd>
               </di>
               <di id="xmlns">
                  <dt>http://www.w3.org/2000/xmlns/</dt>
                  <dd>the namespace for XML namespaces; also implicitly declared
                  </dd>
               </di>
               <di id="html">
                  <dt>http://www.w3.org/1999/xhtml</dt>
                  <dd>the HTML namespace, the same one already being used for XHTML
                  </dd>
               </di>
               <di id="mathml">
                  <dt>http://www.w3.org/1998/Math/MathML</dt>
                  <dd>the <acronym term="Mathematical Markup Language">MathML</acronym> namespace
                  </dd>
               </di>
               <di id="svg">
                  <dt>http://www.w3.org/2000/svg</dt>
                  <dd>the <acronym term="Scalable Vector Graphics">SVG</acronym> namespace
                  </dd>
               </di>
               <di id="xlink">
                  <dt>http://www.w3.org/1999/xlink</dt>
                  <dd>the XLink namespace
                  </dd>
               </di>
               <di id="xsi">
                  <dt>http://www.w3.org/2001/XMLSchema-instance</dt>
                  <dd>the namespace for XML Schema instance documents, which can be used to specify
                     whether the data for a field is binary (possibly encrypted) or plain text:
                     <blockcode>
                        <l>&lt;span id="masked-credit-card-number" xsi:type="xsd:string"&gt;4321 **** **** 8765&lt;/span&gt;</l>
                        <l>&lt;span id="encrypted-credit-card-number" xsi:type="xsd:base64Binary"&gt;BAM0NComFzC2TOsmRzW0NTueQU==&lt;/span&gt;</l>
                     </blockcode>
                  </dd>
               </di>
               <di id="xsl">
                  <dt>http://www.w3.org/1999/XSL/Transform</dt>
                  <dd>the namespace for XSL style sheets, not used in HTML documents themselves,
                     but used in the style sheet documents referenced by the
                     <link xlink:type="simple" xlink:href="../tags/xml-stylesheet-instruction/">xml-stylesheet instruction</link>.
                  </dd>
               </di>
            </dl>
            <h3>Namespace Declarations in &lt;html&gt; Tag</h3>
            <p>The easiest way to declare namespaces is by putting the <code>xmlns</code> attributes
               in the top element of the XML document, which in this case is the &lt;html&gt; tag:
               <blockcode>
                  <l>&lt;html xmlns="http://www.w3.org/1999/xhtml"</l>
                  <l>   xmlns:mathml="http://www.w3.org/1998/Math/MathML"</l>
                  <l>   xmlns:svg="http://www.w3.org/2000/svg"</l>
                  <l>   xmlns:xlink="http://www.w3.org/1999/xlink"</l>
                  <l>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</l>
                  <l>&gt;</l>
               </blockcode>
               In HTML 5, all elements (tags) are automatically considered to be qualified with
               the HTML 5 namespace, which makes the declaration of the HTML namespace optional,
               but this only works when the HTML parser <i>supports</i> HTML 5 and
               is actually looking at the page as an HTML <span class="underline">version 5</span> document.
               It's best to continue coding the <code>xmlns="http://www.w3.org/1999/xhtml"</code>
               explicitly to provide backward compatibility with non-HTML5-aware browsers
               and other types of programs that may be parsing the HTML, such as RSS feed readers -
               otherwise all of the HTML tags will appear to be in the unnamespaced partition.
            </p>
            <updated local="2010-06-20">Sunday June 20, 2010</updated>
         </page>
      </pages>
   </section>
   <copyright>Copyright © 2010 Accilent<span class="sup">®</span> Corp. Alteration of content, including addition of any function such as hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.</copyright>
   <disclaimer>All information, links, forms, applications and other items on this site or obtained from it are provided <b>AS IS</b>, WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</disclaimer>
</document>

