<?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>Expressing IT &#187; modes</title>
	<atom:link href="http://developer.expressionz.in/blogs/tag/modes/feed/" rel="self" type="application/rss+xml" />
	<link>http://developer.expressionz.in/blogs</link>
	<description>User Interface : just another, but a serious developers weblog</description>
	<lastBuildDate>Thu, 20 May 2010 18:05:48 +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>What are DOCTYPES? What are BROWSER QUIRKS &amp; STRICT Mode?</title>
		<link>http://developer.expressionz.in/blogs/2007/09/15/what-are-doctypes-what-are-browser-quirks-strict-mode/</link>
		<comments>http://developer.expressionz.in/blogs/2007/09/15/what-are-doctypes-what-are-browser-quirks-strict-mode/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 22:49:34 +0000</pubDate>
		<dc:creator>Nikhil</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[User Interface Desgin]]></category>
		<category><![CDATA[Doctype]]></category>
		<category><![CDATA[IE Fixes]]></category>
		<category><![CDATA[modes]]></category>

		<guid isPermaLink="false">http://developer.expressionz.in/blogs/?p=13</guid>
		<description><![CDATA[
			
				
			
		
Simple speaking (for those who never heard about doctype before today)! DOCTYPE is the declaration in a HTML document that comes before the &#60;HTML&#62;  tag, that looks something like this ( pasted from the source of this very page)
&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62;

Why use doctype?
It all began when browser standards were [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2007%2F09%2F15%2Fwhat-are-doctypes-what-are-browser-quirks-strict-mode%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2007%2F09%2F15%2Fwhat-are-doctypes-what-are-browser-quirks-strict-mode%2F&amp;source=nikhild&amp;style=normal&amp;hashtags=Doctype,IE+Fixes,modes" height="61" width="50" /><br />
			</a>
		</div>
<p>Simple speaking (for those who never heard about doctype before today)! DOCTYPE is the declaration in a HTML document that comes before the <strong>&lt;HTML&gt; </strong> tag, that looks something like this ( pasted from the source of this very page)</p>
<blockquote><p><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;</code></p></blockquote>
<hr/>
<strong>Why use doctype?</strong><br />
It all began when browser standards were introduced by W3C. The earlier web developers implemented CSS according to the wishes of browsers, to have the pages rendered correctly in them and most websites had CSS that didn&#8217;t quite match these specifications/standards. </p>
<p>Therefore solution to this problem was to </p>
<ul>
<li>
allow web developers who knew their standards to choose which mode to use. </li>
<li>continue displaying old pages according to the old (quirks) rules. </li>
</ul>
<p>And <strong>DOCTYPE </strong>was born. </p>
<p>So, based on whether you page is designed to standards or not , you choose the appropriate doctype. </p>
<hr/>
<strong>Relation between Doctype &#038; Browser modes</strong><br />
Doctype is the statement that tells your browser what mode it should render the HTML page in or rather to be more precise how should the browser interpret the CSS in;  Quirks Mode or Strict mode.  </p>
<p>Old pages written before these standards were introduced don&#8217;t have a doctype. Therefore when there is no <strong> DOCTYPE</strong> in your HTML then the browser is in <strong>QUIRKS</strong> mode.<br />
But if the <strong> DOCTYPE</strong> is defined as one of the following , then the browser is said to be in <strong>STRICT</strong> Mode.</p>
<blockquote><p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/html4/loose.dtd&#8221;&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://developer.expressionz.in/blogs/2007/09/15/what-are-doctypes-what-are-browser-quirks-strict-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
