<?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; Tutorials</title>
	<atom:link href="http://ankit.co/category/tutorials/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>Nested table structure.</title>
		<link>http://ankit.co/tutorials/html/nested-table-structure?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nested-table-structure</link>
		<comments>http://ankit.co/tutorials/html/nested-table-structure#comments</comments>
		<pubDate>Sun, 19 May 2013 18:21:27 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[wireframing]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3478</guid>
		<description><![CDATA[<p>When the layout is a bit complex, it becomes difficult to create the entire layout using just one table. To create a layout as given below we need to use more than one table tag. Output: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/nested-table-structure">Nested table structure.</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>When the layout is a bit complex, it becomes difficult to create the entire layout using just one table. To create a layout as given below we need to use more than one table tag. </p>
<pre class="brush: xml; title: ; notranslate">
&lt;html &gt;
&lt;head&gt;
&lt;title&gt;Nested table structure&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;table align=&quot;center&quot; border=&quot;1px&quot; width=&quot;900px&quot;&gt;
	&lt;tr height=&quot;150px&quot;&gt;
	&lt;td&gt;
	&lt;table border=&quot;1px&quot; width=&quot;100%&quot; height=&quot;100%&quot;&gt;
	&lt;tr&gt;
	&lt;td rowspan=&quot;2&quot; width=&quot;100px&quot;&gt; 1 &lt;/td&gt;
&lt;td colspan=&quot;2&quot;&gt; 2 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td&gt; 3 &lt;/td&gt;
&lt;td&gt; 4 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;100px&quot;&gt;
	&lt;td&gt; 5 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;150px&quot;&gt;
	&lt;td&gt;
	&lt;table border=&quot;1px&quot; width=&quot;100%&quot; height=&quot;100%&quot;&gt;
	&lt;tr&gt;
	&lt;td width=&quot;300px&quot;&gt; 6 &lt;/td&gt;
&lt;td width=&quot;300px&quot;&gt; 7 &lt;/td&gt;
&lt;td width=&quot;300px&quot;&gt; 8 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;450px&quot;&gt;
	&lt;td&gt;
	&lt;table border=&quot;1px&quot; width=&quot;100%&quot; height=&quot;100%&quot;&gt;
	&lt;tr&gt;
	&lt;td width=&quot;800px&quot; height=&quot;200px&quot;&gt; 9 &lt;/td&gt;
&lt;td width=&quot;100px&quot; rowspan=&quot;2&quot;&gt; 10 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td&gt;
	&lt;table width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;1px&quot;&gt;
	&lt;tr&gt;
	&lt;td width=&quot;50%&quot; rowspan=&quot;3&quot;&gt; 11 &lt;/td&gt;
&lt;td colspan=&quot;2&quot;&gt; 12 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td rowspan=&quot;2&quot;&gt; 13 &lt;/td&gt;
&lt;td&gt; 14 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td&gt; 15 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;50px&quot;&gt;
	&lt;td&gt; 16 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><b>Output:</b></p>
<table align="center" border="1px" width="500px">
<tr height="150px">
<td>
<table border="1px" width="100%" height="150px">
<tr>
<td rowspan="2" width="100px"> 1 </td>
<td colspan="2"> 2 </td>
</tr>
<tr>
<td> 3 </td>
<td> 4 </td>
</tr>
</table>
</td>
</tr>
<tr height="50px">
<td> 5 </td>
</tr>
<tr height="150px">
<td>
<table border="1px" width="100%" height="150px">
<tr>
<td width="166px"> 6 </td>
<td width="166px"> 7 </td>
<td> 8 </td>
</tr>
</table>
</td>
</tr>
<tr height="250px">
<td>
<table border="1px" width="100%" height="100%">
<tr>
<td width="400px" height="200px"> 9 </td>
<td width="100px" rowspan="2"> 10 </td>
</tr>
<tr>
<td>
<table width="100%" height="100%" border="1px">
<tr>
<td width="50%" rowspan="3"> 11 </td>
<td colspan="2"> 12 </td>
</tr>
<tr>
<td rowspan="2"> 13 </td>
<td> 14 </td>
</tr>
<tr>
<td> 15 </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr height="50px">
<td> 16 </td>
</tr>
</table>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/nested-table-structure">Nested table structure.</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ankit.co/tutorials/html/nested-table-structure/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>DIV based website structure</title>
		<link>http://ankit.co/tutorials/html/div-based-website-structure?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=div-based-website-structure</link>
		<comments>http://ankit.co/tutorials/html/div-based-website-structure#comments</comments>
		<pubDate>Sun, 19 May 2013 17:23:46 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3449</guid>
		<description><![CDATA[<p>Let us consider that we want to create a layout as given below: For creating this layout we require 5 &#60;div&#62; tags. One outer &#60;div&#62; tag and 4 inner &#60;div&#62; tags. The code for above layout is given below. Outer &#60;div&#62; tag is used to hold the layout to maintain proper formatting. Output of above [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/div-based-website-structure">DIV based website structure</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><strong>Let us consider  that we want to create a layout as given below: </strong><br />
  <center><img src="../../images/div_layout.png" alt="test" width="273" height="275" /></center> <br />
  For creating  this layout we require 5 &lt;div&gt; tags. One outer &lt;div&gt; tag and 4  inner &lt;div&gt; tags. The code for above layout is given below. Outer  &lt;div&gt; tag is used to hold the layout to maintain proper formatting. </p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;DIV based website structure&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:900px; height:100px; background-color:red;&quot;&gt;
Layer 1
&lt;/div&gt;
&lt;div style=&quot;width:100px; height:700px; background-color:green;&quot;&gt;
Layer 2
&lt;/div&gt;
&lt;div style=&quot;width:800px; height:700px; background-color:yellow;&quot;&gt;
Layer 3
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:100px; background-color:blue;&quot;&gt;
Layer 4
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>
<strong>Output of above  code is given below.</strong></p>
<div style="width:500px; background-color:black; ">
<div style="width:500px; height:100px; background-color:red;">Layer 1</div>
<div style="width:100px; height:300px; background-color:green;">Layer 2</div>
<div style="width:400px; height:300px; background-color:yellow;">Layer 3</div>
<div style="width:500px; height:100px; background-color:blue;">Layer 4</div>
</div>
<p>
  Unlike table  there are no rows and no columns. So each block created by &lt;div&gt; tag will  be displayed one below the other. To create the desired layout we need to use  two properties of CSS know as <strong>float</strong> and <strong>clear</strong>.<br />
  Floating creates  layers. When we are considering relative positioning of layers then there are 3  layers : base, float:left and float:right. When we give float:left to a layer  the base layer will be overlapped by the contents of the left floating layer.  In the above code we will now give float:left to Layer 2 and Layer 3.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;DIV based website structure&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:900px; height:100px; background-color:red;&quot;&gt;
	Layer 1
&lt;/div&gt;
&lt;div style=&quot;width:100px; height:700px; background-color:green;float:left;&quot;&gt;
	Layer 2
&lt;/div&gt;
&lt;div style=&quot;width:800px; height:700px; background-color:yellow;float:left;&quot;&gt;
	Layer 3
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:100px; background-color:blue;&quot;&gt;
	Layer 4
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><strong>Output:</strong></p>
<div style="width:500px; background-color:black; ">
<div style="width:500px; height:100px; background-color:red;">Layer 1</div>
<div style="width:100px; height:300px; background-color:green; float:left;">Layer 2</div>
<div style="width:400px; height:300px; background-color:yellow; float:left;">Layer 3</div>
<div style="width:500px; height:100px; background-color:blue;">Layer 4</div>
</div>
<p><br style="clear:both;"/><br />
  But now Layer 4  is not visible. Layer 4 is displayed below Layer 2 and Layer 3 as it will not  wait till floating is over. If we want Layer 4 to wait till floating of  previous layers to complete and then display, we need to use clear property of  CSS. It has three values : left, right and both. Clear:left will wait for  floating to get over and then display.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;DIV based website structure&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:900px; height:100px; background-color:red;&quot;&gt;
	Layer 1
&lt;/div&gt;
&lt;div style=&quot;width:100px; height:700px; background-color:green;float:left;&quot;&gt;
	Layer 2
&lt;/div&gt;
&lt;div style=&quot;width:800px; height:700px; background-color:yellow;float:left;&quot;&gt;
	Layer 3
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:100px; background-color:blue; clear:left;&quot;&gt;
	Layer 4
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><strong> Output:</strong></p>
<div style="width:500px; background-color:black; ">
<div style="width:500px; height:100px; background-color:red;">Layer 1</div>
<div style="width:100px; height:300px; background-color:green; float:left;">Layer 2</div>
<div style="width:400px; height:300px; background-color:yellow; float:left;">Layer 3</div>
<div style="width:500px; height:100px; background-color:blue; clear:left;">Layer 4</div>
</div>
<p>Let us consider  a variation in the above code. We now change the width of Layer 3 from 800px to  600px.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;DIV based website structure&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:900px; height:100px; background-color:red;&quot;&gt;
	Layer 1
&lt;/div&gt;
&lt;div style=&quot;width:100px; height:700px; background-color:green;float:left;&quot;&gt;
	Layer 2
&lt;/div&gt;
&lt;div style=&quot;width:600px; height:700px; background-color:yellow;float:left;&quot;&gt;
	Layer 3
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:100px; background-color:blue; clear:left;&quot;&gt;
	Layer 4
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<div style="width:500px; background-color:black; ">
<div style="width:500px; height:100px; background-color:red;">Layer 1</div>
<div style="width:100px; height:300px; background-color:green; float:left;">Layer 2</div>
<div style="width:300px; height:300px; background-color:yellow; float:left;">Layer 3</div>
<div style="width:500px; height:100px; background-color:blue; clear:left;">Layer 4</div>
</div>
<p><br style="clear:both;"/><br />
  As we have  reduced the width of Layer 3 now base layer is visible. We now give float:right  to Layer 3. As a result Layer 3 will be floated to the right. </p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;DIV based website structure&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:900px; height:100px; background-color:red;&quot;&gt;
	Layer 1
&lt;/div&gt;
&lt;div style=&quot;width:100px; height:700px; background-color:green;float:left;&quot;&gt;
	Layer 2
&lt;/div&gt;
&lt;div style=&quot;width:600px; height:700px; background-color:yellow;float:right;&quot;&gt;
	Layer 3
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:100px; background-color:blue; clear:left;&quot;&gt;
	Layer 4
&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:500px; height:100px; background-color:red;">Layer 1</div>
<div style="width:100px; height:300px; background-color:green; float:left;">Layer 2</div>
<div style="width:300px; height:300px; background-color:yellow; float:right;">Layer 3</div>
<div style="width:500px; height:100px; background-color:blue; clear:left;">Layer 4</div>
</div>
<p><br style="clear:both;"/><br />
  The base layer  is now visible in between Layer 2 and Layer 3. Another variation is to decrease  height of Layer 2 from 700px to 500px. </p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;DIV based website structure&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:900px; height:100px; background-color:red;&quot;&gt;
	Layer 1
&lt;/div&gt;
&lt;div style=&quot;width:100px; height:500px; background-color:green;float:left;&quot;&gt;
	Layer 2
&lt;/div&gt;
&lt;div style=&quot;width:600px; height:700px; background-color:yellow;float:right;&quot;&gt;
	Layer 3
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:100px; background-color:blue; clear:left;&quot;&gt;
	Layer 4
&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:500px; height:100px; background-color:red;">Layer 1</div>
<div style="width:100px; height:150px; background-color:green; float:left;">Layer 2</div>
<div style="width:300px; height:300px; background-color:yellow; float:right;">Layer 3</div>
<div style="width:500px; height:100px; background-color:blue; clear:left;">Layer 4</div>
</div>
<p><br style="clear:both;"/></p>
<p>As Layer 4 will  only wait for left floating therefore once left floating of Layer 2 is over  immediately Layer 4 is attached below it. Layer 4 will not wait for Layer 3 as  it is floated right. We have to set clear:both so that Layer 4 will wait till  both the layers have completed floating.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;DIV based website structure&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:900px; height:100px; background-color:red;&quot;&gt;
	Layer 1
&lt;/div&gt;
&lt;div style=&quot;width:100px; height:500px; background-color:green;float:left;&quot;&gt;
	Layer 2
&lt;/div&gt;
&lt;div style=&quot;width:600px; height:700px; background-color:yellow;float:right;&quot;&gt;
	Layer 3
&lt;/div&gt;
&lt;div style=&quot;width:900px; height:100px; background-color:blue; clear:both;&quot;&gt;
	Layer 4
&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:500px; height:100px; background-color:red;">Layer 1</div>
<div style="width:100px; height:150px; background-color:green; float:left;">Layer 2</div>
<div style="width:300px; height:300px; background-color:yellow; float:right;">Layer 3</div>
<div style="width:500px; height:100px; background-color:blue; clear:both;">Layer 4</div>
</div>
<p><br style="clear:both;"/></p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/div-based-website-structure">DIV based website structure</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-website-structure/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>
		<item>
		<title>Table based website structure</title>
		<link>http://ankit.co/tutorials/html/table-based-website-structure?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=table-based-website-structure</link>
		<comments>http://ankit.co/tutorials/html/table-based-website-structure#comments</comments>
		<pubDate>Sun, 19 May 2013 04:09:43 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[wireframing]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3427</guid>
		<description><![CDATA[<p>As we have understood wireframing in the previous tutorial, now we are going to implement it it using &#60;table&#62; tag. Consider the layouts given below. Layout &#8211; 1 Output: 1 2 3 4 5 5 Above layout consist of four rows and two columns. Layout – 2 Output: 1 2 3 4 5 5 Layout [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/table-based-website-structure">Table based website structure</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>As we have  understood wireframing in the previous tutorial, now we are going to implement  it it using &lt;table&gt; tag.<br />
  Consider the  layouts given below.</p>
<p>
  <strong>Layout &#8211; 1</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;table border=&quot;1px&quot; align=&quot;center&quot; width=&quot;900px&quot;&gt;
&lt;tr height=&quot;100px&quot;&gt;
&lt;td width=&quot;200px&quot;&gt; 1 &lt;/td&gt;
&lt;td&gt; 2 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;50px&quot;&gt;
&lt;td colspan=&quot;2&quot;&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;400px&quot;&gt;
&lt;td width=&quot;200px&quot;&gt;4&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;100px&quot;&gt;
&lt;td colspan=&quot;2&quot;&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre>
</p>
<p><b>Output:</b></p>
<table border="1px" align="center" width="450px">
<tr height="100px">
<td width="100px"> 1 </td>
<td> 2 </td>
</tr>
<tr height="25px">
<td colspan="2">3</td>
</tr>
<tr height="200px">
<td width="100px">4</td>
<td>5</td>
</tr>
<tr height="50px">
<td colspan="2">5</td>
</tr>
</table>
<ul>
<li>Above  layout consist of four rows and two columns.</li>
</ul>
<p><br/></p>
<p><strong>Layout – 2</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;table border=&quot;1px&quot; align=&quot;center&quot; width=&quot;900px&quot;&gt;
&lt;tr height=&quot;100px&quot;&gt;
&lt;td width=&quot;200px&quot;&gt; 1 &lt;/td&gt;
&lt;td colspan=&quot;2&quot;&gt; 2 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;50px&quot;&gt;
&lt;td colspan=&quot;3&quot;&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;400px&quot;&gt;
&lt;td colspan=&quot;2&quot;&gt;4&lt;/td&gt;
&lt;td width=&quot;200px&quot;&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;100px&quot;&gt;
&lt;td colspan=&quot;3&quot;&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><b>Output:</b></p>
<table border="1px" align="center" width="450px">
<tr height="100px">
<td width="100px"> 1 </td>
<td colspan="2"> 2 </td>
</tr>
<tr height="25px">
<td colspan="3">3</td>
</tr>
<tr height="200px">
<td colspan="2">4</td>
<td width="100px">5</td>
</tr>
<tr height="50px">
<td colspan="3">5</td>
</tr>
</table>
<p><strong>Layout – 3</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;table border=&quot;1px&quot; align=&quot;center&quot; width=&quot;900px&quot;&gt;
&lt;tr height=&quot;100px&quot;&gt;
&lt;td width=&quot;200px&quot;&gt; 1 &lt;/td&gt;
&lt;td colspan=&quot;4&quot;&gt; 2 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;50px&quot;&gt;
&lt;td colspan=&quot;5&quot;&gt; 3 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;200px&quot;&gt;
&lt;td colspan=&quot;2&quot;&gt; 4 &lt;/td&gt;
&lt;td width=&quot;300px&quot;&gt; 5 &lt;/td&gt;
&lt;td colspan=&quot;2&quot;&gt; 6 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr height=&quot;400px&quot;&gt;
&lt;td colspan=&quot;4&quot;&gt; 7 &lt;/td&gt;
&lt;td width=&quot;200px&quot;&gt; 8 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan=&quot;5&quot;&gt; 9 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><b>Output:</b></p>
<table border="1px" align="center" width="450px">
<tr height="100px">
<td width="100px"> 1 </td>
<td colspan="4"> 2 </td>
</tr>
<tr height="25px">
<td colspan="5"> 3 </td>
</tr>
<tr height="150px">
<td colspan="2"> 4 </td>
<td width="150px"> 5 </td>
<td colspan="2"> 6 </td>
</tr>
<tr height="200px">
<td colspan="4"> 7 </td>
<td width="100px"> 8 </td>
</tr>
<tr>
<td colspan="5"> 9 </td>
</tr>
</table>
<p>Above layout  consist of 5 columns and 5 rows. We can assign width attribute to cell 1, cell  5 and cell 8 as these are the only cells which do not merge more than one cell.</p>
<h3>Rules to follow while designing Table based website structure having multi browser compatibility</h3>
<ul>
<li>We  should not assign width to a cell whose colspan attribute is assigned</li>
<li>We  should not assign height to a cell whose rowspan attribute is assigned</li>
<li>Width  can be assigned to &lt;table&gt; and &lt;td&gt; tags.</li>
<li>Height  can be assigned to &lt;table&gt; , &lt;tr&gt; and &lt;td&gt; tags.</li>
<li>If  we do not write some content in between &lt;td&gt; and &lt;/td&gt; then browser  will not allocate space for that cell.</li>
</ul>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/table-based-website-structure">Table based website structure</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ankit.co/tutorials/html/table-based-website-structure/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is website wireframing?</title>
		<link>http://ankit.co/tutorials/html/what-is-website-wireframing?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-is-website-wireframing</link>
		<comments>http://ankit.co/tutorials/html/what-is-website-wireframing#comments</comments>
		<pubDate>Sun, 19 May 2013 03:47:36 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[wireframing]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3417</guid>
		<description><![CDATA[<p>Wireframing is a method by which we decide the position of various modules in our website design. Example of different modules in a general website are login , search, menu, logo, footer etc.. It is also known as website template or website structure. Let us consider the below given template to understand: &#8220;What is website [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/what-is-website-wireframing">What is website wireframing?</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Wireframing is a  method by which we decide the position of various modules in our website  design. Example of different modules in a general website are login , search,  menu, logo, footer etc.. It is also known as website template or website  structure.<br />
<strong>  Let us consider  the below given template to understand: &#8220;What is website wireframing?&#8221; : </strong>
  </p>
<table align="center" border="1px" width="450px">
<tr height="100px">
<td width="100px"> Logo Here </td>
<td colspan="2"> Search Bar Here </td>
</tr>
<tr height="25px">
<td colspan="3"> Menu Here </td>
</tr>
<tr height="200px">
<td colspan="2"> Main Text </td>
<td width="200px"> News </td>
</tr>
<tr height="50px">
<td colspan="3"> Footer Here </td>
</tr>
</table>
<p><br/></p>
<p>In  the above layout we allocate space for displaying logo of a company, space for  search module, space for displaying menu, space for displaying events and also  place for footer.</p>
<h3>Deciding width  of a website:</h3>
<p>An important  question while designing a website is that what must be its resolution. As a  standard practice we should decide the width of our website in the range of  900px to 1200px.<br />
<strong>Why so?</strong><br />
  The standard  resolution of a monitor is 1024&#215;768 pixels. If we develop a website which is  larger than 1024px width and even if any user opens that website in a full  screen browser then also browser will generate horizontal scroll bar at the  bottom. As we don&rsquo;t have horizontal scroll button on our mouse device, it will  be inconvenient for the users to access such site. That is why we extend our  webpage in terms of height and not in terms of width.<br />
  Now-a-days we  are familiar with HD monitors having resolution of 1440px and above. Taking  into consideration the target audience it is recommendable to have the width of  our website between 900px to 1200px.</p>
<p><strong>Note :-</strong> Another  approach to develop a website is by occupying 100% of width available with the  browser resolution eg. Google, Gmail.</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/what-is-website-wireframing">What is website wireframing?</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ankit.co/tutorials/html/what-is-website-wireframing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML table tag</title>
		<link>http://ankit.co/tutorials/html/html-table-tag?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=html-table-tag</link>
		<comments>http://ankit.co/tutorials/html/html-table-tag#comments</comments>
		<pubDate>Tue, 14 May 2013 05:56:02 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[html tag]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3402</guid>
		<description><![CDATA[<p>What is a table? Table is a structure which is used to store two dimensional information (eg. Excel) It is a combination of rows and columns. Characteristics of tabular data Width of all columns will be same. Height of all rows will be same. Number of columns in each row should be same. When we [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/html-table-tag">HTML table tag</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>What is a table?</h2>
<ul>
<li>Table  is a structure which is used to store two dimensional information (eg. Excel)</li>
<li>It  is a combination of rows and columns.</li>
</ul>
<h3>Characteristics  of tabular data</h3>
<ul>
<li>Width  of all columns will be same.</li>
<li>Height  of all rows will be same.</li>
<li>Number  of columns in each row should be same.</li>
<li>When  we store any tabular information, generally the first row represents name of  the column.</li>
</ul>
<h2>HTML table tag</h2>
<ul>
<li>For  creating a table in html mainly four tags are used. The tags are as follows:</li>
<li>&lt;table&gt;  &#8211; used to define the structure of the table</li>
<li>&lt;th&gt;  &#8211; used to define the header of the table.</li>
<li>&lt;tr&gt;  &#8211; used to define a row of the table.</li>
<li>&lt;td&gt;  &#8211; used to define individual cells of the table.</li>
<li>Suppose  we want to create a table of size 2&#215;2 i.e. to create a table having 2 rows and  two columns.</li>
</ul>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Welcome&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; 1 &lt;/td&gt;
&lt;td&gt; 2 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; 3 &lt;/td&gt;
&lt;td&gt; 4 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;  
</pre>
<p><b>Output:</b></p>
<table>
<tr>
<td> 1 </td>
<td> 2 </td>
</tr>
<tr>
<td> 3 </td>
<td> 4 </td>
</tr>
</table>
<p><b>Note:</b> When we create a table,  by default it will have following characteristics:</p>
<ul>
<li>no  border</li>
<li>aligned  left</li>
<li>occupy  width and height which is required to accommodate the text.</li>
</ul>
<p>If we want to set these  values, we need to use three attributes of &lt;table&gt; tag.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Welcome&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table border=&quot;1px&quot; align=&quot;center&quot; width=&quot;300px&quot; height=&quot;300px&quot;&gt;
&lt;tr&gt;
&lt;td&gt; 1 &lt;/td&gt;
&lt;td&gt; 2 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; 3 &lt;/td&gt;
&lt;td&gt; 4 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><b>Output:</b></p>
<table border="1px" align="center" width="300px" height="300px">
<tr>
<td> 1 </td>
<td> 2 </td>
</tr>
<tr>
<td> 3 </td>
<td> 4 </td>
</tr>
</table>
<ul>
<li> <strong>Merging of cells</strong>
<ul>
<li>Many times it is required to merge columns or merge rows together. To achieve this  we have to attributes : rowspan and colspan.</li>
<li>Rowspan  : this attribute is used to merge rows together into one row. If we want to  merge three rows then we need to assign the value 3 to this attribute.</li>
<li>Colspan  : this attribute is used to merge columns together. If we want to merge two  columns then we need to assign the value 2 to this attribute.</li>
</ul>
</li>
</ul>
<h3>Examples:</h3>
<p><strong>Table  &#8211; 1</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;table border=&quot;1px&quot; align=&quot;center&quot; width=&quot;300px&quot; height=&quot;200px&quot;&gt;
&lt;tr&gt;
&lt;td colspan=&quot;2&quot;&gt; 1 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; 2&lt;/td&gt;
&lt;td&gt; 3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><b>Output:</b></p>
<table border="1px" align="center" width="300px" height="200px">
<tr>
<td colspan="2"> 1 </td>
</tr>
<tr>
<td> 2</td>
<td> 3</td>
</tr>
</table>
<p><strong>Table  &#8211; 2</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;table border=&quot;1px&quot; align=&quot;center&quot; width=&quot;300px&quot; height=&quot;200px&quot;&gt;
&lt;tr&gt;
&lt;td &gt;1 &lt;/td&gt;
&lt;td&gt; 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan=&quot;2&quot;&gt; 3 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><b>Output:</b></p>
<table border="1px" align="center" width="300px" height="200px">
<tr>
<td >1 </td>
<td> 2</td>
</tr>
<tr>
<td colspan="2"> 3 </td>
</tr>
</table>
<p><strong>Table  &#8211; 3</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;table border=&quot;1px&quot; align=&quot;center&quot; width=&quot;300px&quot; height=&quot;200px&quot;&gt;
&lt;tr&gt;
&lt;td&gt; 1 &lt;/td&gt;
&lt;td rowspan=&quot;2&quot;&gt; 2 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; 3 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><b>Output:</b></p>
<table border="1px" align="center" width="300px" height="200px">
<tr>
<td> 1 </td>
<td rowspan="2"> 2 </td>
</tr>
<tr>
<td> 3 </td>
</tr>
</table>
<p><strong>Table  &#8211; 4</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;tabl eborder=&quot;1px&quot; align=&quot;center&quot; width=&quot;300px&quot; height=&quot;200px&quot;&gt;
&lt;tr&gt;
&lt;td rowspan=&quot;2&quot;&gt; 1 &lt;/td&gt;
&lt;td&gt; 2 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; 3 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><b>Output:</b></p>
<table border="1px" align="center" width="300px" height="200px">
<tr>
<td rowspan="2"> 1 </td>
<td> 2 </td>
</tr>
<tr>
<td> 3 </td>
</tr>
</table>
<p><br/></p>
<h3>Creating  table for storing records</h3>
<p>Generally when we store  any data in a table, each cell of first row describes the name of that  particular column. That data is considered to be table header and the tag used  for it is &lt;th&gt; tag.</p>
<ul>
<li>Characteristics  of &lt;th&gt; tag.</li>
<li>Text  written inside &lt;th&gt; tag is by default aligned to center.</li>
<li>Text  is displayed in bold letters.</li>
</ul>
<p><b>Sample  program: </b></p>
<pre class="brush: xml; title: ; notranslate">
&lt;table border=&quot;1px&quot; align=&quot;center&quot; width=&quot;400px&quot;&gt;
&lt;tr&gt;
&lt;th&gt; ID &lt;/th&gt;
&lt;th&gt; NAME &lt;/th&gt;
&lt;th&gt; CONTACT &lt;/th&gt;
&lt;th&gt; EMAIL &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; 1 &lt;/td&gt;
&lt;td&gt; Ankit Virparia &lt;/td&gt;
&lt;td&gt; 9925720005 &lt;/td&gt;
&lt;td&gt; ankit@ankit.co &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; 2 &lt;/td&gt;
&lt;td&gt; Sonali Virparia &lt;/td&gt;
&lt;td&gt; 9925720005&lt;/td&gt;
&lt;td&gt; sonali@ankit.co&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><b>Output:</b></p>
<table border="1px" align="center" width="400px">
<tr>
<th> ID </th>
<th> NAME </th>
<th> CONTACT </th>
<th> EMAIL </th>
</tr>
<tr>
<td> 1 </td>
<td> Ankit Virparia </td>
<td> 9925720005 </td>
<td> ankit@ankit.co </td>
</tr>
<tr>
<td> 2 </td>
<td> Sonali Virparia </td>
<td> 9925720005</td>
<td> sonali@ankit.co</td>
</tr>
</table>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/html-table-tag">HTML table 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-table-tag/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is a tag?</title>
		<link>http://ankit.co/tutorials/html/what-is-a-tag?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-is-a-tag</link>
		<comments>http://ankit.co/tutorials/html/what-is-a-tag#comments</comments>
		<pubDate>Tue, 14 May 2013 05:21:28 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3397</guid>
		<description><![CDATA[<p>Before we start learning what is a tag? I prefer you just go through an article on: Basics of HTML There are mainly two type of tags: First type of tags are those in which nesting of other or same tag is possible. It can be written as &#60;tag&#62; Data here &#60;/tag&#62; These tags are [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/what-is-a-tag">What is a tag?</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Before we start learning what is a tag? I prefer you just go through an article on: <a href="tutorials/html/introduction-to-html" title="Introduction to HTML">Basics of HTML</a></p>
<h3>There  are mainly two type of tags:</h3>
<ul>
<li>First  type of tags are those in which nesting of other or same tag is possible. It  can be written as
<p><strong>&lt;tag&gt; Data here  &lt;/tag&gt;</strong><br />
These tags are also  called as paired tags whereby we have an opening tag written as &lt;tag&gt; and  we have a closing tag written as &lt;/tag&gt;</p>
</li>
<li>Second  type of tags are those in which such nesting is not possible. It can be written  as<br />
    <strong>&lt;tag /&gt;</strong><br />
  These tags are also  called as unpaired tags.
  </li>
</ul>
<h3>Generalized  format/syntax to write a tag.</h3>
<p>&lt;tag_name  attribute_name1=&rdquo;value1&rdquo; attribute_name2=&rdquo;value2&rdquo;&gt;<br />
  <strong>Data here</strong><br />
  &lt;/tag_name&gt;</p>
<p><strong>Eg.  :</strong> &lt;hr&gt; tag will create a horizontal line but as we cannot write anything  inside a line, this tag is an unpaired tag and written as &lt;hr/&gt;. </p>
<p>  &lt;hr/&gt;<br />
  Now  what if want to display a line in red color? Do we have any other tag for it?  Answer to it is NO, we can achieve this using the same &lt;hr/&gt; tag. For  that we have arguments in &lt;hr/&gt; tag which are known as attributes. Each  attribute will have value assigned to it.<br />
  Eg: <br />
  &lt;hr  color=&rdquo;red&rdquo; / &gt;<br />
  This  will display the line in red color.<br />
  By  default line generated by using &lt;hr/&gt; tag will occupy the 100% width of  the browser. To change the width of line we have another attribute known as  width.<br />
  Eg:<br />
  &lt;hr color=&rdquo;red&rdquo;  width=&rdquo;400px&rdquo; /&gt;</p>
<h3>Ordering  in nesting of tags</h3>
<p>When  tags are nested at that time the sequence of starting and ending tag must be in  LSFC (last start first close) order.<br />
  Eg.  &lt;b&gt;&lt;i&gt; Data   &lt;/i&gt;&lt;/b&gt;<br />
  This is not the correct order. Rather the  code must be written as follows:<br />
  &lt;b&gt;&lt;i&gt;  Data  &lt;/i&gt;&lt;/b&gt;</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/what-is-a-tag">What is a 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/what-is-a-tag/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Various categories of HTML tags</title>
		<link>http://ankit.co/tutorials/html/various-categories-of-html-tags?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=various-categories-of-html-tags</link>
		<comments>http://ankit.co/tutorials/html/various-categories-of-html-tags#comments</comments>
		<pubDate>Tue, 14 May 2013 05:13:04 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3391</guid>
		<description><![CDATA[<p>Categories of html tags are decided based on their use and application areas. There are basically 4 categories of HTML tags. They are as follows : Block contents / block elements Text formatting tags Form / user input tags Frame / iFrame Block contents: As we now know that the &#60;body&#62; tag generates the output [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/various-categories-of-html-tags">Various categories of HTML tags</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Categories of html tags are decided based on their use and application areas. There are  basically 4 categories of HTML tags. They are as follows :</p>
<ol>
<li>Block  contents / block elements</li>
<li>Text  formatting tags</li>
<li>Form  / user input tags</li>
<li>Frame  / iFrame</li>
</ol>
<h3>Block contents:</h3>
<p>As we now know that the &lt;body&gt; tag  generates the output in white area of your browser. The first category of tags  i.e. block elements are used to allocate spaces in this white area. For eg. Space  for displaying the logo, space for login, space for menu, space for footer and  so on. There are 4 block content tags:</p>
<ul>
<li>&lt;div&gt;  , &lt;table&gt; :- these tags are used to hold the website structure.</li>
<li>&lt;p&gt;  , &lt;span&gt; :- these tags are used to hold text or images.</li>
</ul>
<h3>Text formatting tags :</h3>
<p>   We are all familiar with MS Word document. Whatever effects we want to  give to the text (i.e. bold, underline, italics etc.) similar effect can be  given to the text in an html page using this category of tags. Tags in this  category are : &lt;b&gt; , &lt;i&gt; , &lt;u&gt;, &lt;sup&gt; , &lt;sub&gt;  etc..</p>
<h3>Form/user  input tags : </h3>
<p>A dynamic  website is a combination  of two  technologies : client-side and server-side technology. Whereby in order to  transfer the data between the two we make use of this category of tags. Eg. :  To login to a website we need to provide username and password which is to be  submitted to the server. Tags belonging to this category are &lt;input&gt; ,  &lt;textarea&gt;  , &lt;button&gt; etc..</p>
<h3>Frame/iFrame : </h3>
<p>This category of tags can be used to merge  (client side merging) multiple pages and create a single page. We have  tags  like &lt;frameset&gt; ,  &lt;frame&gt; and &lt;iframe&gt;</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/various-categories-of-html-tags">Various categories of HTML tags</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ankit.co/tutorials/html/various-categories-of-html-tags/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic syntax to write HTML page</title>
		<link>http://ankit.co/tutorials/html/basic-syntax-to-write-html-page?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=basic-syntax-to-write-html-page</link>
		<comments>http://ankit.co/tutorials/html/basic-syntax-to-write-html-page#comments</comments>
		<pubDate>Mon, 13 May 2013 11:03:22 +0000</pubDate>
		<dc:creator><![CDATA[Ankit Virparia]]></dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://ankit.co/?p=3379</guid>
		<description><![CDATA[<p>In order to create a page using HTML the Basic syntax to write HTML is: They are : &#60;html&#62; , &#60;head&#62; , &#60;body&#62; Out of these 3 tags, &#60;html&#62; tag is the outer most tag. The other two tags  can also be called as blocks. Difference between &#60;head&#62; and &#60;body&#62; tag. &#60;head&#62; tag is that [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/basic-syntax-to-write-html-page">Basic syntax to write HTML page</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<ul>
<li>In  order to create a page using HTML the Basic syntax to write HTML is:</li>
</ul>
<p>They  are : <strong>&lt;html&gt; , &lt;head&gt; , &lt;body&gt;</strong><br />
Out  of these 3 tags, &lt;html&gt; tag is the outer most tag. The other two  tags  can also be called as blocks.</p>
<ul>
<li>Difference  between &lt;head&gt; and &lt;body&gt; tag.</li>
<li><strong>&lt;head&gt;</strong>  tag is that tag in html which is loaded first. It is loaded even before  &lt;body&gt; tag gets loaded. Whatever we want to display before creating the  view, must be written in &lt;head&gt; tag.</li>
<li><strong>&lt;body&gt;</strong>  tag is the tag where we can write the actual content to generate the output to  be displayed on the white area of your browser.</li>
</ul>
<p>Now let us  consider that you want to open a website say <a href="http://www.ankit.co">www.ankit.co</a> <br />
<a class="highslide"  onclick="return hs.expand(this)" href="../../images/title.png" rel="attachment"><img class="size-full aligncenter" alt="HTML Title" src="../../images/title_400.png" /></a><br />
  As we can see  here, before the site gets loaded we can see some text like &ldquo;Ankit Virparia – A  Programmer&rdquo; being displayed on the title bar. This can be done by writing the  title in the &lt;head&gt; section.</p>
<p><strong>Simple program  to display a title of web page</strong>:<br />
  &lt;head&gt;<br />
  &lt;head&gt;<br />
  &lt;title&gt; Welcome to the world of HTML&lt;/title&gt;<br />
  &lt;/head&gt;<br />
&lt;/html&gt;</p>
<p>
  <strong>Output:</strong><br />
<a class="highslide"  onclick="return hs.expand(this)" href="../../images/title_tag.png" rel="attachment"><img class="size-full aligncenter" alt="Title Example" src="../../images/title_tag_400.png" /></a><br />
<br/><br />
  In the above  code we have &lt;title&gt; tag inside the &lt;head&gt; section. There are some  other things also which can be included in &lt;head&gt; section such as  scripts, CSS and linking of other files.<br />
  Example program  :<br />
  &lt;head&gt;<br />
  &lt;head&gt;<br />
  &lt;title&gt; Welcome to the world of HTML&lt;/title&gt;<br />
  &lt;/head&gt;<br />
  &lt;body&gt;<br />
  Welcome to my website.<br />
  &lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>
  <strong>Output:</strong></p>
<p><a class="highslide"  onclick="return hs.expand(this)" href="../../images/first_prog.png" rel="attachment"><img class="size-full aligncenter" alt="1st html page" src="../../images/first_prog_400.png" /></a></p>
<p>The post <a rel="nofollow" href="http://ankit.co/tutorials/html/basic-syntax-to-write-html-page">Basic syntax to write HTML page</a> appeared first on <a rel="nofollow" href="http://ankit.co">Ankit Virparia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ankit.co/tutorials/html/basic-syntax-to-write-html-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
