A Sample XHTML Document

Contact Us or call 1-877-932-8228
A Sample XHTML Document

A Sample XHTML Document

Below is an example XHTML document.

Code Sample:

XHTML/Demos/Xml101.html
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Introduction to XML</title>
</head>
<body>
<h1>Introduction to XML</h1>
<div id="courseNum">XML101</div>
<div id="courseLength">3 days</div>
<h2>Prerequisites</h2>
<ul>
	<li>Experience with Word Processing</li>
	<li>Experience with HTML (optional, but recommended)</li>
</ul>
<h2>Course Outline</h2>
<div id="outline">
<ul>
	<li>
		XML Basics
		<ul>
			<li>What is XML?</li>
			<li>
				XML Benefits
				<ul>
					<li>XML Holds Data, Nothing More</li>
					<li>XML Separates Structure from Formatting</li>
					<li>XML Promotes Data Sharing</li>
					<li>XML is Human-Readable</li>
					<li>XML is Free</li>
				</ul>
			</li>
		</ul>
		<ul>
			<li>
				XML Documents
				<ul>
					<li>The Prolog</li>
					<li>Elements</li>
					<li>Attributes</li>
					<li>CDATA</li>
					<li>XML Syntax Rules</li>
					<li>Special Characters</li>
				</ul>
			</li>
		</ul>
		<ul>
			<li>Creating a Simple XML File</li>
		</ul>
	</li>
</ul>
</div>
</body>
</html>
Next