<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JaffnaCampus.com &#187; XHTML</title>
	<atom:link href="http://jaffnacampus.com/category/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaffnacampus.com</link>
	<description>Gateway to your IT potential</description>
	<lastBuildDate>Tue, 27 Sep 2011 13:57:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>You Have Learned XHTML, Now What?</title>
		<link>http://jaffnacampus.com/xhtml/you-have-learned-xhtml-now-what/</link>
		<comments>http://jaffnacampus.com/xhtml/you-have-learned-xhtml-now-what/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 13:09:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XHTML]]></category>
		<category><![CDATA[You Have Learned XHTML]]></category>

		<guid isPermaLink="false">http://jaffnacampus.com/?p=132</guid>
		<description><![CDATA[XHTML Summary
This tutorial has taught you how to create stricter and cleaner HTML pages.
You have learned that all XHTML elements [...]]]></description>
			<content:encoded><![CDATA[<h2>XHTML Summary</h2>
<p>This tutorial has taught you how to create stricter and cleaner HTML pages.</p>
<p>You have learned that all XHTML elements must be properly nested, XHTML documents must be well-formed, all tag names must be in lowercase, and that all XHTML elements must be closed.</p>
<p>You have also learned that all XHTML documents must have a DOCTYPE declaration, and that the html, head, title, and body elements must be present.</p>
<p>For more information on XHTML, please look at our <a href="http://JaffnaCampus.com/xhtml/">XHTML reference</a>.</p>
<hr />
<h2>Now You Know XHTML, What&#8217;s Next?</h2>
<p>The next step is to learn CSS and JavaScript.</p>
<p><strong>CSS</strong></p>
<p>CSS is used to control the style and layout of multiple Web pages all at once.</p>
<p>With CSS, all formatting can be removed from the HTML document and stored in a separate file.</p>
<p>CSS gives you total control of the layout, without messing up the document content.</p>
<p>To learn how to create style sheets, please visit our <a href="http://JaffnaCampus.com/css/">CSS tutorial</a>.</p>
<p><strong>JavaScript</strong></p>
<p>JavaScript can make your web site more dynamic.</p>
<p>A static web site is nice when you just want to show flat content, but a dynamic web site can react to events and allow user interaction.</p>
<p>JavaScript is the most popular scripting language on the internet and it works with all major browsers.</p>
<p>If you want to learn more about JavaScript, please visit our <a href="http://JaffnaCampus.com/javascript/">JavaScript tutorial</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaffnacampus.com/xhtml/you-have-learned-xhtml-now-what/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML Modularization</title>
		<link>http://jaffnacampus.com/xhtml/xhtml-modularization/</link>
		<comments>http://jaffnacampus.com/xhtml/xhtml-modularization/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 13:05:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XHTML]]></category>
		<category><![CDATA[XHTML Modularization]]></category>

		<guid isPermaLink="false">http://jaffnacampus.com/?p=130</guid>
		<description><![CDATA[The XHTML modularization-model defines the modules of XHTML.

Why XHTML Modularization?
XHTML contains most of the functionality a web developer will need.
For [...]]]></description>
			<content:encoded><![CDATA[<p>The XHTML modularization-model defines the modules of XHTML.</p>
<hr />
<h2>Why XHTML Modularization?</h2>
<p>XHTML contains most of the functionality a web developer will need.</p>
<p>For some purposes XHTML is too large and complex, and for other purposes it&#8217;s too simple.</p>
<p>By splitting XHTML into modules, the W3C (World Wide web Consortium) has created small and well-defined sets of XHTML elements that can be used separately for small devices, or combined with other XML standards in more complex applications.</p>
<p>With modular XHTML, designers can:</p>
<ul>
<li>Choose the elements to be supported by a device</li>
<li>Simplify XHTML for small devices</li>
<li>Extend XHTML for complex applications by adding new XML functionality (like MathML, SVG, Voice and Multimedia)</li>
<li>Define XHTML profiles like XHTML Basic (a subset of XHTML for mobile devices)</li>
</ul>
<hr />
<h2>XHTML Modules</h2>
<p>W3C has split the definition of XHTML into 28 modules:</p>
<table cellspacing="0" cellpadding="0" border="1" width="100%">
<tbody>
<tr>
<th valign="top" align="left" width="35%">Module name</th>
<th valign="top" align="left" width="65%">Description</th>
</tr>
<tr>
<td valign="top">Applet Module</td>
<td valign="top">Defines the deprecated* applet element</td>
</tr>
<tr>
<td valign="top">Base Module</td>
<td valign="top">Defines the base element</td>
</tr>
<tr>
<td valign="top">Basic Forms Module</td>
<td valign="top">Defines the basic forms elements</td>
</tr>
<tr>
<td valign="top">Basic Tables Module</td>
<td valign="top">Defines the basic table elements</td>
</tr>
<tr>
<td valign="top">Bi-directional Text Module</td>
<td valign="top">Defines the bdo element</td>
</tr>
<tr>
<td valign="top">Client Image Map Module</td>
<td valign="top">Defines browser side image map elements</td>
</tr>
<tr>
<td valign="top">Edit Module</td>
<td valign="top">Defines the editing elements del and ins</td>
</tr>
<tr>
<td valign="top">Forms Module</td>
<td valign="top">Defines all elements used in forms</td>
</tr>
<tr>
<td valign="top">Frames Module</td>
<td valign="top">Defines the frameset elements</td>
</tr>
<tr>
<td valign="top">Hypertext Module</td>
<td valign="top">Defines the a element</td>
</tr>
<tr>
<td valign="top">Iframe Module</td>
<td valign="top">Defines the iframe element</td>
</tr>
<tr>
<td valign="top">Image Module</td>
<td valign="top">Defines the img element</td>
</tr>
<tr>
<td valign="top">Intrinsic Events Module</td>
<td valign="top">Defines event attributes like onblur and onchange</td>
</tr>
<tr>
<td valign="top">Legacy Module</td>
<td valign="top">Defines deprecated* elements and attributes</td>
</tr>
<tr>
<td valign="top">Link Module</td>
<td valign="top">Defines the link element</td>
</tr>
<tr>
<td valign="top">List Module</td>
<td valign="top">Defines the list elements ol, li, ul, dd, dt, and dl</td>
</tr>
<tr>
<td valign="top">Metainformation Module</td>
<td valign="top">Defines the meta element</td>
</tr>
<tr>
<td valign="top">Name Identification Module</td>
<td valign="top">Defines the deprecated* name attribute</td>
</tr>
<tr>
<td valign="top">Object Module</td>
<td valign="top">Defines the object and param elements</td>
</tr>
<tr>
<td valign="top">Presentation Module</td>
<td valign="top">Defines presentation elements like b and i</td>
</tr>
<tr>
<td valign="top">Scripting Module</td>
<td valign="top">Defines the script and noscript elements</td>
</tr>
<tr>
<td valign="top">Server Image Map Module</td>
<td valign="top">Defines server side image map elements</td>
</tr>
<tr>
<td valign="top">Structure Module</td>
<td valign="top">Defines the elements html, head, title and body</td>
</tr>
<tr>
<td valign="top">Style Attribute Module</td>
<td valign="top">Defines the style attribute</td>
</tr>
<tr>
<td valign="top">Style Sheet Module</td>
<td valign="top">Defines the style element</td>
</tr>
<tr>
<td valign="top">Tables Module</td>
<td valign="top">Defines the elements used in tables</td>
</tr>
<tr>
<td valign="top">Target Module</td>
<td valign="top">Defines the target attribute</td>
</tr>
<tr>
<td valign="top">Text Module</td>
<td valign="top">Defines text container elements like p and h1</td>
</tr>
</tbody>
</table>
<p>* Deprecated elements should not be used in XHTML.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaffnacampus.com/xhtml/xhtml-modularization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML Validation</title>
		<link>http://jaffnacampus.com/xhtml/xhtml-validation/</link>
		<comments>http://jaffnacampus.com/xhtml/xhtml-validation/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 13:04:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XHTML]]></category>
		<category><![CDATA[XHTML Validation]]></category>

		<guid isPermaLink="false">http://jaffnacampus.com/?p=128</guid>
		<description><![CDATA[An XHTML document can be validated with W3C&#8217;s validator.

Validate XHTML With A DTD
Before an XHTML file can be validated, a [...]]]></description>
			<content:encoded><![CDATA[<p>An XHTML document can be validated with W3C&#8217;s validator.</p>
<hr />
<h2>Validate XHTML With A DTD</h2>
<p>Before an XHTML file can be validated, a correct DTD must be added as the first line of the file.</p>
<p>The Strict DTD includes elements and attributes that have not been deprecated or do not appear in framesets:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;<br />
        &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;</td>
</tr>
</tbody>
</table>
<p>The Transitional DTD includes everything in the strict DTD plus deprecated elements and attributes:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;<br />
        &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</td>
</tr>
</tbody>
</table>
<p>The Frameset DTD includes everything in the transitional DTD plus frames as well:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Frameset//EN&quot;<br />
        &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd&quot;</td>
</tr>
</tbody>
</table>
<p></p>
<hr />
<h2>Validate Your XHTML With The W3C Validator</h2>
<form method="get" action="http://validator.w3.org/check" target="_blank">
<p>Input a web address in the box below:</p>
<input name="uri" size="60" value="http://JaffnaCampus.com/" />
<input type="submit" value="Validate the page" />
</form>
]]></content:encoded>
			<wfw:commentRss>http://jaffnacampus.com/xhtml/xhtml-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML DTD</title>
		<link>http://jaffnacampus.com/xhtml/xhtml-dtd/</link>
		<comments>http://jaffnacampus.com/xhtml/xhtml-dtd/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 13:01:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XHTML]]></category>
		<category><![CDATA[XHTML DTD]]></category>

		<guid isPermaLink="false">http://jaffnacampus.com/?p=126</guid>
		<description><![CDATA[The most common DTD is XHTML Transitional.
 Is Mandatory
An XHTML document consists of three main parts:
the DOCTYPE declaration
the  section
the [...]]]></description>
			<content:encoded><![CDATA[<p>The most common DTD is XHTML Transitional.</p>
<p><!DOCTYPE> Is Mandatory</p>
<p>An XHTML document consists of three main parts:</p>
<p>the DOCTYPE declaration<br />
the <head> section<br />
the <body> section<br />
The basic document structure is:</p>
<p><!DOCTYPE ...><br />
<html><br />
<head></p>
<p></head><br />
<body> &#8230; </body><br />
</html><br />
Note: The DOCTYPE declaration is always the first line in an XHTML document!</p>
<p>An XHTML Example</p>
<p>This is a simple (minimal) XHTML document:</p>
<p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></p>
<p><html><br />
<head></p>
<p></head><br />
<body></p>
<p>a simple paragraph</p>
<p></body><br />
</html><br />
The DOCTYPE declaration above defines the document type. The rest of the document looks like HTML.</p>
<p>Document Type Definitions (DTD)</p>
<p>A DTD specifies the syntax of a web page in SGML<br />
DTDs are used by SGML applications, such as HTML, to specify rules for documents of a particular type, including a set of elements and entity declarations<br />
An XHTML DTD describes in precise, computer-readable language, the allowed syntax of XHTML markup<br />
There are three XHTML DTDs:</p>
<p>STRICT<br />
TRANSITIONAL<br />
FRAMESET<br />
XHTML 1.0 Strict</p>
<p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><br />
Use the strict DOCTYPE when you want really clean markup, free of presentational clutter. Use it together with CSS.</p>
<p>XHTML 1.0 Transitional</p>
<p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
Use the transitional DOCTYPE when you want to still use HTML&#8217;s presentational features.</p>
<p>XHTML 1.0 Frameset</p>
<p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><br />
Use the frameset DOCTYPE when you want to use HTML frames.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaffnacampus.com/xhtml/xhtml-dtd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML Syntax</title>
		<link>http://jaffnacampus.com/xhtml/xhtml-syntax/</link>
		<comments>http://jaffnacampus.com/xhtml/xhtml-syntax/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 13:00:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XHTML]]></category>
		<category><![CDATA[XHTML Syntax]]></category>

		<guid isPermaLink="false">http://jaffnacampus.com/?p=124</guid>
		<description><![CDATA[Some More XHTML Syntax Rules

Attribute names must be in lower case
Attribute values must be quoted
Attribute minimization is forbidden
The id attribute replaces the name attribute
The XHTML [...]]]></description>
			<content:encoded><![CDATA[<h2>Some More XHTML Syntax Rules</h2>
<ul>
<li>Attribute names must be in <strong>lower case</strong></li>
<li>Attribute values must be <strong>quoted</strong></li>
<li>Attribute minimization is <strong>forbidden</strong></li>
<li>The id attribute <strong>replaces</strong> the name attribute</li>
<li>The XHTML DTD defines <strong>mandatory</strong> elements</li>
</ul>
<hr />
<h2>Attribute Names Must Be In Lower Case</h2>
<p>This is wrong:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;table WIDTH=&quot;100%&quot;&gt;</td>
</tr>
</tbody>
</table>
<p>This is correct:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;table width=&quot;100%&quot;&gt;</td>
</tr>
</tbody>
</table>
<p></p>
<hr />
<h2>Attribute Values Must Be Quoted</h2>
<p>This is wrong:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;table width=100%&gt;</td>
</tr>
</tbody>
</table>
<p>This is correct:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;table width=&quot;100%&quot;&gt;</td>
</tr>
</tbody>
</table>
<p></p>
<hr />
<h2>Attribute Minimization Is Forbidden</h2>
<p>This is wrong:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;input checked&gt;<br />
        &lt;input readonly&gt;<br />
        &lt;input disabled&gt;<br />
        &lt;option selected&gt;<br />
        &lt;frame noresize&gt;</td>
</tr>
</tbody>
</table>
<p>This is correct:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;input checked=&quot;checked&quot; /&gt;<br />
        &lt;input readonly=&quot;readonly&quot; /&gt;<br />
        &lt;input disabled=&quot;disabled&quot; /&gt;<br />
        &lt;option selected=&quot;selected&quot; /&gt;<br />
        &lt;frame noresize=&quot;noresize&quot; /&gt;</td>
</tr>
</tbody>
</table>
<p>Here is a list of the minimized attributes in HTML and how they should be written in XHTML:</p>
<table cellspacing="0" cellpadding="0" border="1" width="100%">
<tbody>
<tr>
<th valign="top" align="left">HTML</th>
<th valign="top" align="left">XHTML </th>
</tr>
<tr>
<td valign="top">compact</td>
<td valign="top">compact=&quot;compact&quot;</td>
</tr>
<tr>
<td valign="top">checked</td>
<td valign="top">checked=&quot;checked&quot;</td>
</tr>
<tr>
<td valign="top">declare</td>
<td valign="top">declare=&quot;declare&quot;</td>
</tr>
<tr>
<td valign="top">readonly</td>
<td valign="top">readonly=&quot;readonly&quot;</td>
</tr>
<tr>
<td valign="top">disabled</td>
<td valign="top">disabled=&quot;disabled&quot;</td>
</tr>
<tr>
<td valign="top">selected</td>
<td valign="top">selected=&quot;selected&quot;</td>
</tr>
<tr>
<td valign="top">defer</td>
<td valign="top">defer=&quot;defer&quot;</td>
</tr>
<tr>
<td valign="top">ismap</td>
<td valign="top">ismap=&quot;ismap&quot;</td>
</tr>
<tr>
<td valign="top">nohref</td>
<td valign="top">nohref=&quot;nohref&quot;</td>
</tr>
<tr>
<td valign="top">noshade</td>
<td valign="top">noshade=&quot;noshade&quot;</td>
</tr>
<tr>
<td valign="top">nowrap</td>
<td valign="top">nowrap=&quot;nowrap&quot;</td>
</tr>
<tr>
<td valign="top">multiple</td>
<td valign="top">multiple=&quot;multiple&quot;</td>
</tr>
<tr>
<td valign="top">noresize</td>
<td valign="top">noresize=&quot;noresize&quot;</td>
</tr>
</tbody>
</table>
<p></p>
<hr />
<h2>The Lang Attribute</h2>
<p>The lang attribute applies to almost every XHTML element. It specifies the language of the content within an element.</p>
<p>If you use the lang attribute in an element, you must also add the xml:lang attribute, like this:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;div lang=&quot;it&quot; xml:lang=&quot;it&quot;&gt;Ciao bella!&lt;/div&gt;</td>
</tr>
</tbody>
</table>
<p></p>
<hr />
<h2>Mandatory XHTML Elements</h2>
<p>All XHTML documents must have a DOCTYPE declaration. The html, head, title, and body elements must be present.</p>
<p>This is an XHTML document with a minimum of required tags:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;!DOCTYPE Doctype goes here&gt;<br />
        &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
        &lt;head&gt;<br />
        &lt;title&gt;Title goes here&lt;/title&gt;<br />
        &lt;/head&gt;</p>
<p>        &lt;body&gt;<br />
        &lt;/body&gt;</p>
<p>        &lt;/html&gt;</td>
</tr>
</tbody>
</table>
<p><strong>Note</strong>: The DOCTYPE declaration is not a part of the XHTML document itself. It is not an XHTML element. You will learn more about the XHTML DOCTYPE in the next chapter.</p>
<p><strong>Note:</strong> The xmlns attribute in &lt;html&gt;, specifies the xml namespace for a document, and is required in XHTML documents. However, the HTML validator at w3.org does not complain when the xmlns attribute is missing. This is because the namespace &quot;xmlns=http://www.w3.org/1999/xhtml&quot; is default, and will be added to the &lt;html&gt; tag even if you do not include it.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaffnacampus.com/xhtml/xhtml-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Differences Between XHTML And HTML</title>
		<link>http://jaffnacampus.com/xhtml/differences-between-xhtml-and-html/</link>
		<comments>http://jaffnacampus.com/xhtml/differences-between-xhtml-and-html/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 12:59:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XHTML]]></category>
		<category><![CDATA[Differences Between XHTML And HTML]]></category>

		<guid isPermaLink="false">http://jaffnacampus.com/?p=122</guid>
		<description><![CDATA[Get Ready For XHTML
XHTML is not very different from the HTML 4.01 standard.
So, bringing your code up to the 4.01 [...]]]></description>
			<content:encoded><![CDATA[<h2>Get Ready For XHTML</h2>
<p>XHTML is not very different from the HTML 4.01 standard.</p>
<p>So, bringing your code up to the 4.01 standard is a good start.</p>
<p>Our complete <a href="JaffnaCampus.com/html/html-reference">HTML 4.01 reference</a> can help you with that.</p>
<p>In addition, you should start NOW to write your HTML code in lowercase letters, and NEVER skip closing tags (like &lt;/p&gt;).</p>
<hr />
<h2>The Most Important Differences:</h2>
<ul>
<li>XHTML elements must be <strong>properly nested</strong></li>
<li>XHTML elements must always be <strong>closed</strong></li>
<li>XHTML elements must be in <strong>lowercase</strong></li>
<li>XHTML documents must have <strong>one root element</strong></li>
</ul>
<hr />
<h2>XHTML Elements Must Be Properly Nested</h2>
<p>In HTML, some elements can be improperly nested within each other, like this:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;b&gt;&lt;i&gt;This text is bold and italic&lt;/b&gt;&lt;/i&gt;</td>
</tr>
</tbody>
</table>
<p>In XHTML, all elements must be properly nested within each other, like this:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;b&gt;&lt;i&gt;This text is bold and italic&lt;/i&gt;&lt;/b&gt;</td>
</tr>
</tbody>
</table>
<p><strong>Note:</strong> A common mistake with nested lists, is to forget that the inside list must be within &lt;li&gt; and &lt;/li&gt; tags.</p>
<p>This is wrong:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;ul&gt;<br />
        &lt;li&gt;Coffee&lt;/li&gt;<br />
        &lt;li&gt;Tea<br />
        &lt;ul&gt;<br />
        &lt;li&gt;Black tea&lt;/li&gt;<br />
        &lt;li&gt;Green tea&lt;/li&gt;<br />
        &lt;/ul&gt;<br />
        &lt;li&gt;Milk&lt;/li&gt;<br />
        &lt;/ul&gt;</td>
</tr>
</tbody>
</table>
<p>This is correct:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;ul&gt;<br />
        &lt;li&gt;Coffee&lt;/li&gt;<br />
        &lt;li&gt;Tea<br />
        &lt;ul&gt;<br />
        &lt;li&gt;Black tea&lt;/li&gt;<br />
        &lt;li&gt;Green tea&lt;/li&gt;<br />
        &lt;/ul&gt;<br />
        &lt;/li&gt;<br />
        &lt;li&gt;Milk&lt;/li&gt;<br />
        &lt;/ul&gt;</td>
</tr>
</tbody>
</table>
<p>Notice that we have inserted a &lt;/li&gt; tag after the &lt;/ul&gt; tag in the &quot;correct&quot; code example.</p>
<hr />
<h2>XHTML Elements Must Always Be Closed</h2>
<p>Non-empty elements must have a closing tag.</p>
<p>This is wrong:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;p&gt;This is a paragraph<br />
        &lt;p&gt;This is another paragraph</td>
</tr>
</tbody>
</table>
<p>This is correct:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;p&gt;This is a paragraph&lt;/p&gt;<br />
        &lt;p&gt;This is another paragraph&lt;/p&gt;</td>
</tr>
</tbody>
</table>
<p></p>
<hr />
<h2>Empty Elements Must Also Be Closed</h2>
<p>Empty elements must also be closed.</p>
<p>This is wrong:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>A break: &lt;br&gt;<br />
        A horizontal rule: &lt;hr&gt;<br />
        An image: &lt;img src=&quot;happy.gif&quot; alt=&quot;Happy face&quot;&gt;</td>
</tr>
</tbody>
</table>
<p>This is correct:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>A break: &lt;br /&gt;<br />
        A horizontal rule: &lt;hr /&gt;<br />
        An image: &lt;img src=&quot;happy.gif&quot; alt=&quot;Happy face&quot; /&gt;</td>
</tr>
</tbody>
</table>
<p></p>
<hr />
<h2>XHTML Elements Must Be In Lower Case</h2>
<p>Tag names and attributes must be in lower case.</p>
<p>This is wrong:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;BODY&gt;<br />
        &lt;P&gt;This is a paragraph&lt;/P&gt;<br />
        &lt;/BODY&gt;</td>
</tr>
</tbody>
</table>
<p>This is correct:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;body&gt;<br />
        &lt;p&gt;This is a paragraph&lt;/p&gt;<br />
        &lt;/body&gt;</td>
</tr>
</tbody>
</table>
<p></p>
<hr />
<h2>XHTML Documents Must Have One Root Element</h2>
<p>All XHTML elements must be nested within the &lt;html&gt; root element. Child elements must be in pairs and correctly nested within their parent element.</p>
<p>The basic document structure is:</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td>&lt;html&gt;<br />
        &lt;head&gt; &#8230; &lt;/head&gt;<br />
        &lt;body&gt; &#8230; &lt;/body&gt;<br />
        &lt;/html&gt;</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://jaffnacampus.com/xhtml/differences-between-xhtml-and-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML &#8211; Why?</title>
		<link>http://jaffnacampus.com/xhtml/xhtml-why/</link>
		<comments>http://jaffnacampus.com/xhtml/xhtml-why/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 12:56:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XHTML]]></category>
		<category><![CDATA[XHTML - Why?]]></category>

		<guid isPermaLink="false">http://jaffnacampus.com/?p=120</guid>
		<description><![CDATA[XHTML is a combination of HTML and XML (EXtensible Markup Language).
XHTML consists of all the elements in HTML 4.01, combined [...]]]></description>
			<content:encoded><![CDATA[<p>XHTML is a combination of HTML and XML (EXtensible Markup Language).</p>
<p>XHTML consists of all the elements in HTML 4.01, combined with the strict syntax of XML.</p>
<p>Why XHTML?</p>
<p>Many pages on the internet contain &#8220;bad&#8221; HTML.</p>
<p>The following HTML code will work just fine if you view it in a browser (even if it does NOT follow the HTML rules):</p>
<p><html><br />
<head></p>
<p><body></p>
<h1>Bad HTML</p>
<p>This is a paragraph<br />
</body><br />
XML is a markup language where everything must be marked up correctly, which results in &#8220;well-formed&#8221; documents.</p>
<p>XML is designed to describe data, and HTML is designed to display data.</p>
<p>Today&#8217;s market consists of different browser technologies, some browsers run on computers, and some browsers run on mobile phones or other small devices. The last-mentioned do not have the resources or power to interpret a &#8220;bad&#8221; markup language.</p>
<p>Therefore &#8211; by combining the strengths of HTML and XML, W3C recommended a markup language that is useful now and in the future &#8211; XHTML.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaffnacampus.com/xhtml/xhtml-why/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to XHTML</title>
		<link>http://jaffnacampus.com/xhtml/introduction-to-xhtml/</link>
		<comments>http://jaffnacampus.com/xhtml/introduction-to-xhtml/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 12:55:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XHTML]]></category>
		<category><![CDATA[Introduction to XHTML]]></category>

		<guid isPermaLink="false">http://jaffnacampus.com/xhtml/introduction-to-xhtml/</guid>
		<description><![CDATA[XHTML is a stricter and cleaner version of HTML.

What You Should Already Know
Before you continue you should have a basic [...]]]></description>
			<content:encoded><![CDATA[<p>XHTML is a stricter and cleaner version of HTML.</p>
<hr />
<h2>What You Should Already Know</h2>
<p>Before you continue you should have a basic understanding of the following:</p>
<ul>
<li>HTML and the basics of building web pages</li>
</ul>
<p>If you want to study HTML first, please read our <a href="JaffnaCampus.com/html/">HTML tutorial</a>.</p>
<hr />
<h2>What Is XHTML?</h2>
<ul>
<li>XHTML stands for EXtensible HyperText Markup Language</li>
<li>XHTML is almost identical to HTML 4.01</li>
<li>XHTML is a stricter and cleaner version of HTML</li>
<li>XHTML is HTML defined as an XML application</li>
<li>XHTML is a W3C Recommendation</li>
</ul>
<hr />
<h2>XHTML is a W3C Recommendation</h2>
<p>XHTML 1.0 became a W3C Recommendation January 26, 2000.</p>
<p>Stay updated with the latest W3C recommendations in our <a href="/w3c/default.asp">W3C tutorial</a>.</p>
<hr />
<h2>All Browsers Support XHTML</h2>
<p>XHTML is compatible with HTML 4.01. All browsers support XHTML.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaffnacampus.com/xhtml/introduction-to-xhtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

