XHTML 2 (8th Working Draft) Code Snippets

Provides framework templates and code snippets for the 8th Working Draft of XHTML 2.0 (eXtensible HyperText Markup Language).

General editor notes or advisories within the snippets are contained within angle quotations: « ».

Version 2.0.0.1. Released: 2008-09-02.

References: XHTML 2.0 (Working Draft 26 July 2006).

<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/css" href="main.css" title="Main Style" media="screen, print, projection, handheld, tv, speech"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN" "«TBD(http://www.w3.org/TR/xhtml2/DTD/xhtml2.dtd?)»"> <html xmlns="http://www.w3.org/2002/06/xhtml2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2002/06/xhtml2 http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd" xml:lang="en" dir="ltr"> <head> <title>Untitled</title> <meta property="description">Description for search engines</meta> </head> <body> <h>Untitled</h> <p></p> </body> </html>
<?xml-stylesheet type="text/css" href="presentme.css" title="Main Style" media="" alternate="«yes/no»"?>
id=""
xml:id=""
xml:lang=""
xml:base=""
dir="«ltr / rtl / lro / rlo»"
title=""
class=""
style=""
layout="«irrelevant / relevant»"
media="« all / screen / print / speech ... »"
src=""
srctype="«content type, optional content type, ...»"
encoding="« encoding (usually utf-8), optional-encoding, ...»"
href=""
hreftype="«content type, optional content type, ...»"
hreflang="«language code, optional language code, ...»"
hrefmedia="«all / screen / print / speech ...»"
cite=""
target=""
nextfocus="«id value»"
prevfocus="«id value»"
edit="«inserted / deleted / changed / moved»"
datetime=""
role="« main / secondary / navigation / banner / contentinfo / note / seealso / search »"
about=""
content=""
datatype=""
property=""
rel=""
rev=""
usemap=""
ismap="ismap"
shape="« default / rect / circle / poly »"
coords=""
<meta «about=""» property=""></meta>
<link rel="" hreftype="«content type, optional content type, ...»" href="" title=""></link>
<meta property="description"></meta>
<meta property="generator"></meta>
<meta property="robots">noindex,nofollow</meta>
<link rel="icon" hreftype="image/x-icon" href="icons/website.ico" />
<link rel="icon" hreftype="image/png" href="icons/website.png" />
<link rel="icon" hreftype="image/jpeg" href="icons/website.jpg" />
<link rel="icon" hreftype="image/gif" href="icons/website.gif" />
<link rel="alternate" hreftype="" href="" title=""/>
<link rel="alternate" hreftype="application/rss+xml" href="news.rss.xml" title="RSS"/>
<link rel="meta" hreftype="application/rdf+xml" href="metadata.rdf"/>
<link rel="«start / home»" hrefhref="" title="Homepage"/>
<link rel="help" href="" title="Help"/>
<link rel="copyright" href="" title="Copyrights"/>
<link rel="up" href="" title="Up one level"/>
<link rel="first" href="" title="First page in collection"/>
<link rel="previous" href="" title="Previous Page"/>
<link rel="next" href="" title="Next Page"/>
<link rel="last" href="" title="Last page in collection"/>
<link rel="index" href="" title="Index"/>
<link rel="«contents / toc»" href="" title="Table of Contents"/>
<link rel="search" href="" title="Search Site"/>
<link rel="glossary" href="" title="Glossery of keywords and phrases"/>
<link rel="bookmark" href="" title="My Bookmark"/>
<link rel="chapter" href="" title=""/>
<link rel="section" href="" title=""/>
<link rel="subsection" href="" title=""/>
<link rel="appendix" href="" title=""/>
<link rel="p3pv1" href="privacypolicy.p3p" title="The privacy policy"/>
<link rel="profile" href="" title="A profile"/>
<link rel="role" href="" title="A role"/>
<link rel="cite" href="" title="A citation"/>
<access key="a" « targetid="«id value»" / targetrole="" » title=""/>
<style type="text/css" title="Main Style" media=""><![CDATA[ ]]></style>
<style «src?»type="text/css" src="presentme.css" title="Main Style" media=""></style>
<handler «src?»type="text/javascript" src="script.js"></handler>
<handler type="text/javascript"><![CDATA[ // ]]> </handler>
<handler «src?»type="text/javascript" src="script.js"></handler>
<handler type="text/javascript"><![CDATA[ // ]]> </handler>
<meta «about=""» property=""></meta>
<link rel="" hreftype="«content type, optional content type, ...»" href="" title=""></link>
<div> </div>
<section> </section>
<p> </p>
<l></l>
<span></span>
<q></q>
<blockcode> </blockcode>
<blockquote cite=""> </blockquote>
<address></address>
<sub></sub>
<sup></sup>
<pre></pre>
<img src="image.png" srctype="image/png">Alternative Content</img>
<a href="" title="" «hreftype=""»></a>
<separator/>
<ruby> <rb>Main Text eg: 2008-07-14</rb> <rp> (</rp><rt>Ruby Text eg: YYYY-MM-DD</rt><rp>)</rp> </ruby>
<dfn title=""></dfn>
<acronym title=""></acronym>
<abbr «title="" / full="#idname"»></abbr>
<code></code>
<em></em>
<strong></strong>
<cite></cite>
<samp></samp>
<kbd></kbd>
<var></var>
<h></h>
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
<nl> </nl>
<ol> </ol>
<ul> </ul>
<li></li>
<dl> </dl>
<di> </di>
<dt></dt>
<dd></dd>
<label></label>
<table> </table>
<caption></caption>
<summary>This is a data table for something</summary>
<colgroup span="1"> </colgroup>
<col span="1"/>
<thead> </thead>
<tbody> </tbody>
<tfoot> </tfoot>
<tr> </tr>
<td headers="th-id1 th-id2 th-idn" «scope="«row / col / rowgroup / colgroup»" abbr="" axis="«category»"»></td>
<th id="th-id1" «headers="th-id1 th-id2 th-idn"» scope="«row / col / rowgroup / colgroup»" abbr="" axis="«category»"></th>
rowspan=""
colspan=""
<object id="" src="" srctype="" archive="" content-length="" declare="declare"> </object>
<caption></caption>
<standbay></standby>
<param name="" value="" valuetype="«data / ref / object»" type="«content type»"/>
<!-- Bring in Java 2 Applet to XHTML 2 supported web browsers --> <object src="myapplet.class" srctype="application/x-java-applet;version=1.2"> <!-- If applet is in a Java Archive (JAR): xml:base="myapplet.jar" --> <!-- Any applet specific parameters: <param name="theText" value="Hi, this is a JApplet (XHTML 2)" /> --> Alternative Content </object>
<!-- Bring in Flash to XHTML 2 supported web browsers --> <object srctype="application/x-shockwave-flash" src="myflashmvie.swf" id="myflashmovie"> Alternative Content </object>
<!-- Bring in Quicktime Video to XHTML 2 supported web browsers --> <object srctype="video/quicktime" src="quicktime.mov"> <param name="controller" value="true" /> Alternative Content </object>
<!-- Bring in RealVideo to XHTML 2 supported web browsers --> <object src="real.rm" srctype="?"> <param name="controls" value="ImageWindow" /> <param name="autostart" value="true" /> Alternative Content </object>
<!-- Bring in RealAudio to XHTML 2 supported web browsers --> <object src="real.ram" srctype="audio/x-pn-realaudio-plugin"> <param name="controls" value="All" /> <param name="autostart" value="true" /> Alternative Content </object>

Web-based Code Snippets are copywritten 2008 to Legend Scrolls and Peter Davison.
Web-based Code Snippets are licensed under the Creative Commons Attribution 3.0 Unported.