<?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>BreeRadloff.com &#187; XHTML &amp; HTML5</title>
	<atom:link href="http://www.breeradloff.com/category/articles/code/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.breeradloff.com</link>
	<description>Interactive &#38; UX Design</description>
	<lastBuildDate>Thu, 06 May 2010 03:53:46 +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>DOCTYPE Explained</title>
		<link>http://www.breeradloff.com/2009/01/doctype-explained/</link>
		<comments>http://www.breeradloff.com/2009/01/doctype-explained/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 13:59:55 +0000</pubDate>
		<dc:creator>Bree</dc:creator>
				<category><![CDATA[XHTML & HTML5]]></category>
		<category><![CDATA[DOCTYPE]]></category>

		<guid isPermaLink="false">http://www.breeradloff.com/?p=56</guid>
		<description><![CDATA[What is DOCTYPE and why do I care?
The DOCTYPE declaration is the first line of code in any web document. It tells  the browser what type of markup you wrote. Declaring one but coding for another may result in errors or inconsistencies across the spectrum of browsers. I&#8217;ve offered a few downloads that you [...]]]></description>
			<content:encoded><![CDATA[<h3>What is DOCTYPE and why do I care?</h3>
<p>The DOCTYPE declaration is the first line of code in any web document. It tells  the browser what type of markup you wrote. <span id="more-56"></span>Declaring one but coding for another may result in errors or inconsistencies across the spectrum of browsers. I&#8217;ve offered a few downloads that you can set as blank starting documents, automating a few lines of code that you&#8217;ll potentially type hundreds of thousands of times.</p>
<h3>What Are The Different DOCTYPEs?</h3>
<ul>
<li><strong>Strict</strong>: Does not contain any presentation code such as the  &lt;FONT&gt; tag &#8211; it is purely <em>structural</em>.</li>
<li><strong>Transitional</strong>: Allows presentation code, but does not  contain frame-related markup.</li>
<li><strong>Frameset</strong>: Allows presentation code and contains  frame-related markup.</li>
</ul>
<h3>How Do I Choose What DOCTYPE to Declare?</h3>
<ul>
<li><strong>Strict</strong>: You are an <em>adept</em> web geek, perhaps a seasoned veteran of the Browser Wars; your markup is lean and your CSS is tight. You might be thinking ahead to accessibility or dynamic layouts.</li>
<li><strong>Transitional</strong>: You are unsure what to choose; you think you  might commit a <em>faux pas</em> and include presentation code in your markup.  You might be supporting older code (the horror!).</li>
<li><strong>Frameset</strong>: For when you <em>cannot avoid</em> using frames.  In this mode the FRAMESET replaces the BODY element.</li>
</ul>
<h3>What Do They Look Like?</h3>
<p>The very first line in any of your pages should be one of the following:</p>
<p class="codeExample">&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221;<br />
&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&gt;</p>
<p class="codeExample">&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221;<br />
&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;</p>
<p class="codeExample">&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Frameset//EN&#8221;<br />
&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd&#8221;&gt;</p>
<h3>Validating Your Page</h3>
<p>The first step in eliminating rendering errors and cross browser battles is to ensure that your document is valid code (of the specified DOCTYPE). Paste your code or URL into the <a title="W3C Markup Validation Service" href="http://validator.w3.org/" target="_blank">W3C validation  service</a> and go from there.</p>
<h3>Downloads</h3>
<p>Most HTML editors and development environments will allow you to specify the blank starting documents that are used as templates when you create a new file. Download these three HTML pages and set them up in your editor to be sure your DOCTYPE is declared correctly every time without manually typing it.</p>
<p><a title="XHTML Starters (zip)" href="http://www.bay70.com/files/code/XHTMLstarters.zip">XHTML Starters</a></p>
<h3>More Reading About the DOCTYPE:</h3>
<p>Believe it or not, it&#8217;s possible to geek out on the DOCTYPE even more. Explore the links below to learn about such highly <em>exotic nuances</em> such as DOCTYPE switching, other DOCTYPE declarations and more.</p>
<ul>
<li><a title="Recommended DTD's" href="http://www.w3.org/QA/2002/04/valid-dtd-list.html" target="_blank">Recommended DTD&#8217;s</a> @ W3C</li>
<li><a title="Fix Your Site With The Right DOCTYPE!" href="http://www.alistapart.com/articles/doctype/" target="_blank">Fix Your Site With the Right DOCTYPE!</a> @ A List Apart</li>
<li><a title="Beyond DOCTYPE" href="http://www.alistapart.com/articles/beyonddoctype" target="_blank">Beyond DOCTYPE:</a> Web Standards, Forward Compatibility &amp; IE8</li>
<li><a title="The HTML DOCTYPE Tag" href="http://www.w3schools.com/tags/tag_DOCTYPE.asp" target="_blank">The HTML DOCTYPE Tag</a> @ W3Schools</li>
<li><a title="DOCTYPE Explained" href="http://www.oreillynet.com/pub/a/javascript/synd/2001/08/28/doctype.html" target="_blank">DOCTYPE Explained</a> @ The O&#8217;Reilly Web DevCenter</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.breeradloff.com/2009/01/doctype-explained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
