<?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>HTML5 Doctor &#187; XHTML 5</title>
	<atom:link href="http://html5doctor.com/tag/xhtml-5/feed/" rel="self" type="application/rss+xml" />
	<link>http://html5doctor.com</link>
	<description>helping you implement HTML5 today</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:36:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HTML 5 + XML = XHTML 5</title>
		<link>http://html5doctor.com/html-5-xml-xhtml-5/</link>
		<comments>http://html5doctor.com/html-5-xml-xhtml-5/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 14:20:41 +0000</pubDate>
		<dc:creator>Bruce Lawson</dc:creator>
				<category><![CDATA[Attributes]]></category>
		<category><![CDATA[Browser Compatibility]]></category>
		<category><![CDATA[Structure]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[XHTML 5]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=381</guid>
		<description><![CDATA[
			
				
			
		
(Also available in Spanish Traducción de “HTML 5 + XML = XHTML 5″ and  Portuguese.)
I like the xhtml syntax. It&#8217;s how I learned. I&#8217;m used to lowercase code, quoted attributes and trailing slashes on elements like br and img. They make me feel nice and comfy, like a cup of Ovaltine and The Evil [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;source=html5doctor&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>(Also available in Spanish <a lang="es" href="http://www.htmlcinco.com/traduccion-de-html-5-xml-xhtml-5/">Traducción de “HTML 5 + XML = XHTML 5″</a> and  <a href="http://www.pinceladasdaweb.com.br/blog/2009/12/10/html-5-xml-xhtml-5/">Portuguese</a>.)</p>
<p>I like the <abbr>xhtml</abbr> syntax. It&#8217;s how I learned. I&#8217;m used to lowercase code, quoted attributes and trailing slashes on elements like <code>br</code> and <code>img</code>. They make me feel nice and comfy, like a cup of Ovaltine and <cite>The Evil Dead</cite> on the telly.</p>
<p>But you might not. You might want SHOUTY UPPERCASE tags, <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#start-tags">no trailing slashes</a> and <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#attributes">attribute minimisation</a>. And, in <abbr>HTML</abbr> 5, you can choose</a>.</p>
<p>Thanks to the &#8220;<a href="http://www.w3.org/TR/html-design-principles/#pave-the-cowpaths">pave the cowpaths</a>&#8221; principle, it&#8217;s up to you. As you like it. What you will. Whatever you want, whatever you like.</p>
<p>But let no-one tell you that <abbr>HTML</abbr> 5 kills <abbr>XML</abbr>&mdash;meet <abbr>XHTML</abbr> 5.</p>
<p><abbr>XHTML</abbr> 5 is the <abbr>XML</abbr> serialisation of <abbr>HTML</abbr> 5 and, as you&#8217;d imagine, it has all the stricter parsing rules that you&#8217;d expect (and are used to if, like me, you grew up with <abbr>XHTML</abbr> DOCTYPES). It <strong>must</strong> be served  with an XML MIME type, such as application/xml or application/xhtml+xml (so no rendering in Internet Explorer for the moment) and will throw a wobbly at the slightest well-formedness violation. (See  <a href="http://www.webstandards.org/learn/articles/askw3c/sep2003/">Serving XHTML with the Right MIME Type</a> for more information.)</p>
<p>Usual <abbr>XML</abbr> rules apply: no <code>document.write</code>s allowed, no DOCTYPE required,  some syntax and script differences to trip up the unwary and you can use namespaces. </p>
<p>The main differences are summarised on the official <abbr>WHATWG</abbr> wiki <a href="http://wiki.whatwg.org/wiki/HTML_vs._XHTML">Differences Between HTML and XHTML</a>. It&#8217;s also possible to write <a href="http://dev.w3.org/html5/html-author/#polyglot-documents">polyglot documents</a> that can be processed as either by browsers, depending on the MIME type used.</p>
<p>Magne emailed the Doctor to ask &#8220;Is it OK to use HTML5 tags in a page with the XHTML 1.1 doctype? Which one  should  I use, as in, which one is the recommendation now?&#8221;</p>
<p>If you want to use the new features, you need to use <abbr>HTML</abbr> 5 DOCTYPE or <abbr>XHTML</abbr> 5. Given that Internet Explorer cannot process <abbr>XML</abbr>, for pragmatic reasons the Doctor advises <abbr>HTML</abbr> 5.
<div id="crp_related">
<h3>Related Posts:</h3>
<ul>
<li><a href="http://html5doctor.com/absent-elements-and-validation/" rel="bookmark" class="crp_title">Absent Elements and Validation</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-2/" rel="bookmark" class="crp_title">Your questions answered #2</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-3/" rel="bookmark" class="crp_title">Your Questions Answered #3</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-4/" rel="bookmark" class="crp_title">Your Questions Answered #4</a></li>
<li><a href="http://html5doctor.com/how-to-get-html5-working-in-ie-and-firefox-2/" rel="bookmark" class="crp_title">How to get HTML5 working in IE and Firefox 2</a></li>
</ul>
</div>
<p>Share and Save:</p>
<p>	<a rel="nofollow"  href="http://twitter.com/home?status=HTML%205%20%2B%20XML%20%3D%20XHTML%205%20-%20http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F" title="Twitter"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;title=HTML%205%20%2B%20XML%20%3D%20XHTML%205&amp;bodytext=%28Also%20available%20in%20Spanish%20Traducci%C3%B3n%20de%20%E2%80%9CHTML%205%20%2B%20XML%20%3D%20XHTML%205%E2%80%B3%20and%20%20Portuguese.%29%0D%0A%0D%0AI%20like%20the%20xhtml%20syntax.%20It%27s%20how%20I%20learned.%20I%27m%20used%20to%20lowercase%20code%2C%20quoted%20attributes%20and%20trailing%20slashes%20on%20elements%20like%20br%20and%20img.%20They%20make%20me%20feel" title="Digg"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F" title="Sphinn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;title=HTML%205%20%2B%20XML%20%3D%20XHTML%205" title="Reddit"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;title=HTML%205%20%2B%20XML%20%3D%20XHTML%205&amp;notes=%28Also%20available%20in%20Spanish%20Traducci%C3%B3n%20de%20%E2%80%9CHTML%205%20%2B%20XML%20%3D%20XHTML%205%E2%80%B3%20and%20%20Portuguese.%29%0D%0A%0D%0AI%20like%20the%20xhtml%20syntax.%20It%27s%20how%20I%20learned.%20I%27m%20used%20to%20lowercase%20code%2C%20quoted%20attributes%20and%20trailing%20slashes%20on%20elements%20like%20br%20and%20img.%20They%20make%20me%20feel" title="del.icio.us"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;title=HTML%205%20%2B%20XML%20%3D%20XHTML%205" title="StumbleUpon"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F" title="Technorati"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=HTML%205%20%2B%20XML%20%3D%20XHTML%205&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F" title="Netvibes"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;t=HTML%205%20%2B%20XML%20%3D%20XHTML%205" title="Facebook"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;title=HTML%205%20%2B%20XML%20%3D%20XHTML%205&amp;annotation=%28Also%20available%20in%20Spanish%20Traducci%C3%B3n%20de%20%E2%80%9CHTML%205%20%2B%20XML%20%3D%20XHTML%205%E2%80%B3%20and%20%20Portuguese.%29%0D%0A%0D%0AI%20like%20the%20xhtml%20syntax.%20It%27s%20how%20I%20learned.%20I%27m%20used%20to%20lowercase%20code%2C%20quoted%20attributes%20and%20trailing%20slashes%20on%20elements%20like%20br%20and%20img.%20They%20make%20me%20feel" title="Google Bookmarks"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=HTML%205%20%2B%20XML%20%3D%20XHTML%205&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F" title="FriendFeed"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;t=HTML%205%20%2B%20XML%20%3D%20XHTML%205" title="HackerNews"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;title=HTML%205%20%2B%20XML%20%3D%20XHTML%205&amp;source=HTML5+Doctor+helping+you+implement+HTML5+today&amp;summary=%28Also%20available%20in%20Spanish%20Traducci%C3%B3n%20de%20%E2%80%9CHTML%205%20%2B%20XML%20%3D%20XHTML%205%E2%80%B3%20and%20%20Portuguese.%29%0D%0A%0D%0AI%20like%20the%20xhtml%20syntax.%20It%27s%20how%20I%20learned.%20I%27m%20used%20to%20lowercase%20code%2C%20quoted%20attributes%20and%20trailing%20slashes%20on%20elements%20like%20br%20and%20img.%20They%20make%20me%20feel" title="LinkedIn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;h=HTML%205%20%2B%20XML%20%3D%20XHTML%205" title="NewsVine"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fhtml5doctor.com%2Fhtml-5-xml-xhtml-5%2F&amp;t=HTML%205%20%2B%20XML%20%3D%20XHTML%205&amp;s=%28Also%20available%20in%20Spanish%20Traducci%C3%B3n%20de%20%E2%80%9CHTML%205%20%2B%20XML%20%3D%20XHTML%205%E2%80%B3%20and%20%20Portuguese.%29%0D%0A%0D%0AI%20like%20the%20xhtml%20syntax.%20It%27s%20how%20I%20learned.%20I%27m%20used%20to%20lowercase%20code%2C%20quoted%20attributes%20and%20trailing%20slashes%20on%20elements%20like%20br%20and%20img.%20They%20make%20me%20feel" title="Tumblr"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></p>
<p><br/><br/></p>
<p><a href="http://html5doctor.com/html-5-xml-xhtml-5/" rel="bookmark">HTML 5 + XML = XHTML 5</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on July 2, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/html-5-xml-xhtml-5/feed/</wfw:commentRss>
		<slash:comments>61</slash:comments>
		</item>
	</channel>
</rss>
