<?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="css" name="css-stylesheets">
            <label>CSS StyleSheets</label>
            <title>CSS Style Sheets</title>
            <h2>Cascading Style Sheets</h2>
            <p>In addition to providing different styles based on the type of device being used to display
               a web page, CSS style sheets can provide alternate user-selectable views of the page.
               For example, an alternative style sheet could be used to show the user what the
               web page would look like if it was to be printed:
            </p>
            <blockcode>
               <l>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</l>
               <l>&lt;?xml-stylesheet type="text/xsl" href="/site-template.xsl"?&gt;</l>
               <l>&lt;!DOCTYPE html&gt;</l>
               <l>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;</l>
               <l>  &lt;head&gt;</l>
               <l>    &lt;link rel="stylesheet" type="application/xslt+xml" href="/styles/print.xsl" media="print"/&gt;</l>
               <l>    &lt;link rel="stylesheet" type="application/xslt+xml" href="/styles/handheld.xsl" media="handheld"/&gt;</l>
               <l>    &lt;link rel="stylesheet" type="application/xslt+xml" href="/styles/screen.xsl" media="screen"/&gt;</l>
               <l>    &lt;link rel="alternate stylesheet" type="text/css" title="Printer-Friendly" href="/styles/print.css" media="print"/&gt;</l>
               <l>    &lt;link rel="stylesheet" type="text/css" href="/styles/print.css" media="print"/&gt;</l>
               <l>    &lt;link rel="stylesheet" type="text/css" href="/styles/handheld.css" media="handheld"/&gt;</l>
               <l>    &lt;link rel="stylesheet" type="text/css" href="/styles/screen.css" media="screen"/&gt;</l>
               <l>    &lt;title&gt;Example Only&lt;/title&gt;</l>
               <l>  &lt;/head&gt;</l>
               <l>  &lt;body&gt;</l>
               <l>    &lt;h1&gt;Sample HTML 5 Web Page with Style Sheets&lt;/h1&gt;</l>
               <l>    &lt;p&gt;This is the content of the page. The appropriate CSS styles will be applied&lt;/p&gt;</l>
               <l>       The styles from the appropriate .css file will be applied to various elements on the page and</l>
               <l>       the "look and feel" in the templates in the appropriate .xsl file will be wrapped around it.</l>
               <l>    &lt;/p&gt;</l>
               <l>  &lt;/body&gt;</l>
               <l>&lt;/html&gt;</l>
            </blockcode>
            <p>The user can select one the alternate style sheets from the menu bar of their browser,
               for example, with the options <span class="outlined">View</span>,
               then <span class="outlined">Page Style</span> and, in this case,
               <span class="outlined">Printer-Friendly</span> in Firefox.
            </p>
            <updated local="2010-09-19">Sunday September 19, 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>

