<?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; table</title>
	<atom:link href="http://ankit.co/tag/table/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>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>
	</channel>
</rss>
