<?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>Ankit Virparia &#187; div</title>
	<atom:link href="http://ankit.co/tag/div/feed" rel="self" type="application/rss+xml" />
	<link>http://ankit.co</link>
	<description>A Programmer, Designer and Trainer</description>
	<lastBuildDate>Sun, 11 May 2014 04:15:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Div based layout example</title>
		<link>http://ankit.co/tutorials/html/div-based-layout-example?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=div-based-layout-example</link>
		<comments>http://ankit.co/tutorials/html/div-based-layout-example#comments</comments>
		<pubDate>Sun, 19 May 2013 17:59:13 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[wireframing]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3466</guid>
		<description><![CDATA[<p>In this tutorial we will consider two different layouts using div tag. Layout 1 Output: Layer 1 Layer 2 Layer 3 Layer 4 Layer 5 Layer 6 Layout 2 Output: Layer 1 Layer 2 Layer 3 Layer 4 Layer 5 Layer 6 Layer 7 Layer 8 Layer 9</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/div-based-layout-example">Div based layout example</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>In this tutorial we will consider two different layouts using div tag.</p>
<hr/>
<strong>Layout 1</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Div based layout example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div style=&quot;width:900px; background-color:black; &quot;&gt;	
&lt;div style=&quot;width:100px; height:100px; background-color:red; float:left;&quot;&gt;
	Layer 1
&lt;/div&gt;
&lt;div style=&quot;width:800px; height:100px; background-color:green; float:left;&quot;&gt;
	Layer 2
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:200px; background-color:yellow; clear:left;&quot;&gt;
	Layer 3
&lt;/div&gt;
&lt;div style=&quot;width:700px; height:500px; background-color:blue; float:left;&quot;&gt;
	Layer 4
&lt;/div&gt;
&lt;div style=&quot;width:200px; height:500px; background-color:#9900CC; float:left;&quot;&gt;
	Layer 5
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:200px; background-color:#39C; clear:left;&quot;&gt;
	Layer 6
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><b>Output:</b><br/></p>
<div style="width:500px; background-color:black; ">
<div style="width:100px; height:100px; background-color:red; float:left;">Layer 1</div>
<div style="width:400px; height:100px; background-color:green; float:left;">Layer 2</div>
<div style="width:500px; height:200px; background-color:yellow; clear:left;">Layer 3</div>
<div style="width:400px; height:300px; background-color:blue; float:left;">Layer 4</div>
<div style="width:100px; height:300px; background-color:#9900CC; float:left;">Layer 5</div>
<div style="width:500px; height:50px; background-color:#39C; clear:left;">Layer 6</div>
</div>
<hr/>
<strong>Layout 2</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Div based layout&lt; example/title&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div style=&quot;width:900px; background-color:black; &quot;&gt;	
&lt;div style=&quot;width:100px; height:150px; background-color:red; float:left;&quot;&gt;
	Layer 1
&lt;/div&gt;
&lt;div style=&quot;width:800px; height:150px; background-color:green; float:left;&quot;&gt;
	Layer 2
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:100px; background-color:yellow; clear:left;&quot;&gt;
	Layer 3
&lt;/div&gt;
&lt;div style=&quot;width:300px; height:200px; background-color:blue; float:left;&quot;&gt;
	Layer 4
&lt;/div&gt;
&lt;div style=&quot;width:300px; height:200px; background-color:#666666; float:left;&quot;&gt;
	Layer 5
&lt;/div&gt;
&lt;div style=&quot;width:300px; height:200px; background-color:#CC99CC; float:left;&quot;&gt;
	Layer 6
&lt;/div&gt;
&lt;div style=&quot;width:700px; height:500px; background-color:#00FF99; float:left;&quot;&gt;
	Layer 7
&lt;/div&gt;
&lt;div style=&quot;width:200px; height:500px; background-color:olive; float:left;&quot;&gt;
	Layer 8
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:100px; background-color:#39C; clear:left;&quot;&gt;
	Layer 9
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><b>Output:</b></p>
<div style="width:500px; background-color:black; ">
<div style="width:100px; height:150px; background-color:red; float:left;">Layer 1</div>
<div style="width:400px; height:150px; background-color:green; float:left;">Layer 2</div>
<div style="width:500px; height:100px; background-color:yellow; clear:left;">Layer 3</div>
<div style="width:166px; height:200px; background-color:blue; float:left;">Layer 4</div>
<div style="width:166px; height:200px; background-color:#666666; float:left;">Layer 5</div>
<div style="width:168px; height:200px; background-color:#CC99CC; float:left;">Layer 6</div>
<div style="width:400px; height:500px; background-color:#00FF99; float:left;">Layer 7</div>
<div style="width:100px; height:500px; background-color:olive; float:left;">Layer 8</div>
<div style="width:500px; height:100px; background-color:#39C; clear:left;">Layer 9</div>
</div>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/div-based-layout-example">Div based layout example</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ankit.co/tutorials/html/div-based-layout-example/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML div tag</title>
		<link>http://ankit.co/tutorials/html/html-div-tag?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=html-div-tag</link>
		<comments>http://ankit.co/tutorials/html/html-div-tag#comments</comments>
		<pubDate>Sun, 19 May 2013 04:33:45 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[wireframing]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3439</guid>
		<description><![CDATA[<p>&#60;div&#62; tag is also used in implementing wireframing. Difference between &#60;div&#62; and &#60;table&#62; based layout Table Div To create one block using table based layout we require 3 tags, they are: one &#60;table&#62; tag to define a table , one &#60;tr&#62; to define one row in the table and one &#60;td&#62; to define one cell [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/html-div-tag">HTML div tag</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>&lt;div&gt; tag  is also used in implementing wireframing.
  </p>
<h3>Difference  between &lt;div&gt; and &lt;table&gt; based layout</h3>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tr>
<th width="404" valign="top"><strong>Table </strong></th>
<th width="404" valign="top">
<p align="center"><strong>Div</strong></p>
</th>
</tr>
<tr>
<td width="404" valign="top">
<p>To create one block using table based    layout we require 3 tags, they are: one &lt;table&gt; tag to define a table ,    one &lt;tr&gt; to define one row in the table and one &lt;td&gt; to define    one cell in that row.</p>
</td>
<td width="404" valign="top">
<p>To create one block using div based    layout we require just one tag and that is &lt;div&gt; tag to define the    block.</p>
</td>
</tr>
<tr>
<td width="404" valign="top">
<p>Number to tags required is more.</p>
</td>
<td width="404" valign="top">
<p>Number of tags required is less as    just one tag is required to create one block.</p>
</td>
</tr>
<tr>
<td width="404" valign="top">
<p>Browser parsing is slow.</p>
</td>
<td width="404" valign="top">
<p>Browser parsing is fast.</p>
</td>
</tr>
<tr>
<td width="404" valign="top">
<p>SEO (search engine optimization) rank    is low for table based layout.</p>
</td>
<td width="404" valign="top">
<p>SEO (search engine optimization) rank    is high for div based layout.</p>
</td>
</tr>
<tr>
<td width="404" valign="top">
<p>Table based layout is controlled by    its attributes.</p>
</td>
<td width="404" valign="top">
<p>Div based layout is controlled by CSS.</p>
</td>
</tr>
</table>
<p>By default when  we write a div tag it will not have any border which can separate one block  from the other. Also the browser will allocate space according to the content  of div.</p>
<p>
  In order to  create a layout using html div tag we need to make use of CSS (Cascading  Style Sheet) to assign width and height. We will make use of an inline CSS for  controlling div alignments. For further reference on CSS refer article &#8211; How to  write a CSS?
  </p>
<p>Consider the  below given program to create a div having the following CSS properties :  width, height, margin, background-color.</p>
<pre class="brush: xml; title: ; notranslate">
 &lt;div style=&quot;width:450px; margin:0px auto; height:100px; background-color:red;&quot;&gt;
This is a div.
&lt;/div&gt;
</pre>
<p><b>Output:</b></p>
<div style="width:450px; margin:0px auto; height:100px; background-color:red;">
This is a div.
</div>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/html-div-tag">HTML div tag</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ankit.co/tutorials/html/html-div-tag/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
