<?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>Basic lessons in HTML, CGI, SEO, domain registration, hosting - build an on line business! &#187; HTML</title>
	<atom:link href="http://powertoearnmoney.com/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://powertoearnmoney.com</link>
	<description>Learn to write HTML, CGI, SEO tips, domain setup- to build a website or blog to earn money from home</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:15:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Floating Images &#8211; Part II</title>
		<link>http://powertoearnmoney.com/html/floating-images-part-ii/</link>
		<comments>http://powertoearnmoney.com/html/floating-images-part-ii/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 19:44:28 +0000</pubDate>
		<dc:creator>AdminP</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Floating images without wrapping text]]></category>
		<category><![CDATA[Images with horizontal and vertical space]]></category>

		<guid isPermaLink="false">http://powertoearnmoney.com/?p=3223</guid>
		<description><![CDATA[<p>We&#8217;ve seen how to use the align tag to make images &#8216;float&#8217; to one side or the other of your page. We&#8217;ve also seen how the text will wrap around these images.  But what if you don&#8217;t want the text to wrap?</p>
<p>Since a floated image will affect all the elements that follow it, you will [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-3225" title="floatinglady2" src="http://powertoearnmoney.com/wp-content/uploads/2011/08/floatinglady2.jpg" alt="" width="102" height="105" />We&#8217;ve seen how to use the <span style="color: #0000ff;"><strong><em>align</em></strong></span> tag to make images &#8216;float&#8217; to one side or the other of your page. We&#8217;ve also seen how the text will wrap around these images.  But what if you don&#8217;t want the text to wrap?</p>
<p>Since a floated image will affect all the elements that follow it, you will need to insert a special line break: <span style="color: #0000ff;"><strong><em>clear</em></strong></span> to control the text. Using the <span style="color: #0000ff;"><strong><em>clear</em></strong></span> attribute along with the regular <span style="color: #0000ff;"><strong><em>br</em></strong></span> tag indicates that the text should not start until the specified margin is cleared. This &#8216;specified margin&#8217; would be at the end of the image or images.</p>
<h4>How to Stop Text from Wrapping</h4>
<p>To stop the text from wrapping you would place the cursor at the place where you want to stop wrapping text and elements to the side of the image.  In most cases this will follow the image.  The code used would look like:</p>
<p><strong><span style="color: #0000ff;">&lt;br clear=&#8221;left&#8221; /&gt;</span></strong> &#8211; to stop flowing content until there are no more floating images aligned to the left margin</p>
<p><span style="color: #0000ff;"><strong>&lt;br clear=&#8221;right&#8221; /&gt;</strong></span> &#8211; to stop flowing content until there are no more floating images aligned to the right margin</p>
<p>You can use <strong><span style="color: #0000ff;">&lt;br clear=&#8221;all&#8221; /&gt;</span></strong> &#8211; to stop flowing content until there are no more floating images on either margin</p>
<p>To see how this might look, we&#8217;ve taken the same HTML code we used for our last sample, but this time we&#8217;ve included the <strong><em><span style="color: #0000ff;">clear</span></em></strong> attribute to see how the text is affected.</p>
<p><strong>Begin HTML Code Sample</strong> <em>(<span style="text-decoration: underline;">Using <strong><span style="color: #0000ff; text-decoration: underline;">clear</span></strong> Attribute</span>):</em></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;table width=&#8221;400&#8243;&gt;&lt;tr&gt;&lt;td&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;center&gt;&lt;font face=&#8221;arial&#8221;&gt;&lt;b&gt;&lt;u&gt;</span></strong>SAMPLE PAGE WITH FLOATING IMAGES &amp; CLEAR ATTRIBUTE<strong><span style="color: #0000ff;">&lt;/u&gt;&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;&lt;br&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;img src=&#8221;/leftfloatimage.jpg&#8221; align=&#8221;left&#8221; width=&#8221;150&#8243; height=&#8221;75&#8243; /&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;br clear=&#8221;left&#8221; /&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;font face=&#8221;arial&#8221;&gt;&lt;b&gt;</span></strong>Floating Image . . . Left Side<strong><span style="color: #0000ff;">&lt;/b&gt;&lt;br&gt;&lt;br&gt;</span></strong> This image has been coded to float to the left of the page using a clear attribute. Notice how the heading and text now display below the image around the image<span style="color: #0000ff;"><strong>.&lt;br&gt;&lt;br&gt;&lt;br&gt;</strong></span></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;img src=&#8221;/rightfloatimage.jpg&#8221; width=&#8221;150&#8243; height=&#8221;75&#8243; align=&#8221;right&#8221; /&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;br clear=&#8221;right&#8221; /&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;b&gt;</span></strong>Floating Image . . . Right Side<strong><span style="color: #0000ff;">&lt;/b&gt;&lt;br&gt;&lt;br&gt;</span></strong>Notice how the image floats to the right side of the page&#8230; but since we&#8217;ve used a clear attribute, the text and heading appear below the image. <strong><span style="color: #0000ff;">&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</span></strong></p>
<p>&nbsp;</p>
<p><img title="floatingimagesclear" src="http://powertoearnmoney.com/wp-content/uploads/2011/08/floatingimagesclear.jpg" alt="" width="413" height="413" /></p>
<h4></h4>
<h4>How to Add  Space Around an Image</h4>
<p>If you look at the sample above, you&#8217;ll see that the text and heading associated with the second image are butted right up next to the images. However, you can use the <strong><em><span style="color: #0000ff;">vspace</span></em></strong> and <strong><em><span style="color: #0000ff;">hspace</span></em></strong> attributes to add a margin of space around the images. Both of these are included in the same line of code you would use for the image.  For example, to add space around an image you would use the following:</p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">hspace=&#8221;x&#8221;</span></strong>   for horizontal space where <em>x</em> is the number of pixels you want to add on both the right and left sides of the image</p>
<p style="padding-left: 30px;"><strong><em><span style="color: #0000ff;">vspace=&#8221;x&#8221;</span></em></strong>   for vertical space where x is the number of pixels you want to add on both the top and bottom sides of the image</p>
<p>Your code might look like &#8230;</p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;img src=&#8221;image_name.jpg&#8221; align=&#8221;left&#8221; width=&#8221;150&#8243; height=&#8221;100&#8243; hspace=&#8221;10&#8243; vspace=&#8221;5&#8243; /&gt;</span></strong></p>
<p>&#8230; where we&#8217;ve placed <span style="text-decoration: underline;">10 pixels</span> on the left and right side; and <span style="text-decoration: underline;">5 pixels</span> on the top and bottom.</p>
<p>Note that you do not have to add both horizontal and vertical space at the same time.   However, using this attribute does not allow for adding space to only one side of the image. If you want to have space on only one side of the image or if the space needs to be uneven, you would do better to use a graphics program to add in the blank space.</p>
<p>Don&#8217;t miss our post next week, we&#8217;ve got a super new FREE program to tell you about.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fpowertoearnmoney.com%2Fhtml%2Ffloating-images-part-ii%2F&amp;title=Floating%20Images%20%26%238211%3B%20Part%20II"><img src="http://powertoearnmoney.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://powertoearnmoney.com/html/floating-images-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make Images Float</title>
		<link>http://powertoearnmoney.com/html/how-to-make-images-float/</link>
		<comments>http://powertoearnmoney.com/html/how-to-make-images-float/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 19:41:41 +0000</pubDate>
		<dc:creator>AdminP</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[How to align images]]></category>
		<category><![CDATA[how to use floating images]]></category>
		<category><![CDATA[HTML code to align images]]></category>

		<guid isPermaLink="false">http://powertoearnmoney.com/?p=3216</guid>
		<description><![CDATA[<p>We&#8217;ve seen how an image can be placed in a specific area of a page by using tables. However, you can also include images by using the &#8216;align&#8217; attribute to make images float along one side or other of the page. If you&#8217;re familiar with using Word Press, this &#8216;align&#8217; process is much the same [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-3217" title="floatinglady" src="http://powertoearnmoney.com/wp-content/uploads/2011/08/floatinglady.jpg" alt="" width="102" height="105" />We&#8217;ve seen how an image can be placed in a specific area of a page by using tables. However, you can also include images by using the <em>&#8216;align&#8217;</em> attribute to make images float along one side or other of the page. If you&#8217;re familiar with using Word Press, this <em>&#8216;align&#8217;</em> process is much the same as inserting images in your post. When you align an image on a page &#8211; left or right, you have the image display with the text and other elements wrapping around. The code used to accomplish this is within the page&#8217;s HTML code.</p>
<h4>Floating a Image on One-side</h4>
<p>Sample line of code:</p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;img src=&#8221;image_name.jpg&#8221; align=&#8221;left&#8221; width=&#8221;150&#8243; height=&#8221;100&#8243; /&gt;</span></strong></p>
<ol>
<li>Type <strong><span style="color: #0000ff;">&lt;img src=&#8221;image_name.jpg&#8221;</span></strong> <em>[ image_name.jpg is the image name and location of the image on the server ]</em></li>
<li>Type either <strong><span style="color: #0000ff;">align=&#8221;left&#8221;</span></strong> or <strong><span style="color: #0000ff;">align=&#8221;right&#8221;</span></strong> depending on which side you want the image to float to. Remember, any text associated will flow to the opposite side of the page.</li>
<li>Add other image attributes, i.e., width, height, border, etc. before you&#8230;.</li>
<li>Type the final <strong><span style="color: #0000ff;">/&gt;</span></strong> to close the line</li>
<li>Create the elements, text that should flow next to the image</li>
</ol>
<h4>Floating an Image on Both-sides</h4>
<p>To float both left and right side images on one page you put in two (2) lines of code; one for the left image and one for the right image. The screen capture below shows the results when having two (2) images float on one page.</p>
<p><img class="alignnone size-full wp-image-3218" title="imagetablecapture" src="http://powertoearnmoney.com/wp-content/uploads/2011/08/imagetablecapture.jpg" alt="" width="412" height="348" /></p>
<p>&nbsp;</p>
<p>To force the text to wrap for our sample, we&#8217;ve put our images inside of a table with a width of 400 pixels. We&#8217;ve placed the code used below for reference.</p>
<p>Note:   we&#8217;ve use the paragraph tag <strong><span style="color: #0000ff;">&lt;p&gt;</span></strong> to begin a new paragraph and have the text align with the new image. Use the <strong><span style="color: #0000ff;">&lt;/p&gt;</span></strong> tag to close paragraphs, text, etc.  associated with any image.</p>
<p><strong>HTML Code:</strong></p>
<p><strong><span style="color: #0000ff;">&lt;table width=&#8221;400&#8243;&gt;&lt;tr&gt;&lt;td&gt;</span></strong></p>
<p><strong><span style="color: #0000ff;">&lt;center&gt;&lt;font face=&#8221;arial&#8221;&gt;&lt;b&gt;&lt;u&gt;</span></strong>SAMPLE PAGE WITH FLOATING IMAGES<strong><span style="color: #0000ff;">&lt;/u&gt;&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;&lt;br&gt;</span></strong></p>
<p><strong><span style="color: #0000ff;">&lt;img src=&#8221;/leftfloatimage.jpg&#8221; align=&#8221;left&#8221; width=&#8221;150&#8243; height=&#8221;75&#8243; /&gt;&lt;font face=&#8221;arial&#8221;&gt;&lt;p&gt;&lt;b&gt;</span></strong>Floating Image . . .</p>
<p>Left Side<strong><span style="color: #0000ff;">&lt;/b&gt;</span></strong> This image has been coded to float to the left of the page. Notice how the heading and text wrap around the image. <strong><span style="color: #0000ff;">&lt;/p&gt; &lt;img src=&#8221;/rightfloatimage.jpg&#8221; width=&#8221;150&#8243; height=&#8221;75&#8243; align=&#8221;right&#8221; /&gt;&lt;p&gt;</span></strong> <strong><span style="color: #0000ff;">&lt;b&gt;</span></strong>Floating Image . . . Right Side<strong><span style="color: #0000ff;">&lt;/b&gt;&lt;br&gt;&lt;br&gt;</span></strong>Notice how the image floats to the right side of the page, while the text and heading appear to the left. More text will continue to wrap around the image filling in the blank space<strong><span style="color: #0000ff;">.&lt;/p&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</span></strong></p>
<h4>Helpful Tips</h4>
<ul>
<li>When aligning images, remember it will be the image that appears left or right &#8211; <em>not the text</em>.</li>
<li>Place the image directly before the text it is to &#8216;disrupt&#8217;.</li>
<li>The text will continue to appear on the opposite side from the image until there is no more text or a break is encountered.</li>
</ul>
<h4>Conclusion</h4>
<p>This is an easy way to include images and incorporate them with text without having to use tables. However, there may be times when you don&#8217;t want the text to wrap. Next week we&#8217;ll look at how to stop elements from wrapping and we&#8217;ll learn how to add space around a floating image.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fpowertoearnmoney.com%2Fhtml%2Fhow-to-make-images-float%2F&amp;title=How%20to%20Make%20Images%20Float"><img src="http://powertoearnmoney.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://powertoearnmoney.com/html/how-to-make-images-float/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML:    Creating a Marquee</title>
		<link>http://powertoearnmoney.com/html/html-creating-a-marquee/</link>
		<comments>http://powertoearnmoney.com/html/html-creating-a-marquee/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 19:14:18 +0000</pubDate>
		<dc:creator>AdminP</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML code for banner]]></category>
		<category><![CDATA[HTML Scrolling Banner]]></category>
		<category><![CDATA[Scrolling Marquee]]></category>

		<guid isPermaLink="false">http://powertoearnmoney.com/?p=3201</guid>
		<description><![CDATA[<p>If you want to have a marquee on your page without using JAVA, try using the following HTML code to insert a scrolling marquee anywhere on your web page. Your marquee can be words, sentences, or even images. The information contained in your marquee code will start at one point (on the screen) and float [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to have a marquee on your page without using <a title="JAVA Streaming Banner" href="http://powertoearnmoney.com/scripts-cgi-javascripts-php/streaming-horizontal-banner-java-script/" target="_blank">JAVA</a>, try using the following HTML code to insert a scrolling marquee anywhere on your web page. Your marquee can be words, sentences, or even images. The information contained in your marquee code will start at one point <em>(on the screen)</em> and float across much like the advertising marquees you see at some businesses.</p>
<p><strong>Marquee Code for our sample text:</strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;marquee width=&#8221;85%&#8221; height=&#8221;15&#8243; scrolldelay=&#8221;175&#8243; behavior=&#8221;scroll&#8221; direction=&#8221;left&#8221; loop=&#8221;infinite&gt;</span></strong> <strong>This is a sample marquee scroll <span style="color: #0000ff;">&lt;/marquee&gt;</span></strong></p>
<p style="text-align: left;"><span style="color: #000000;">To see this code in action, visit this link&#8230;. <span style="color: #ff0000;"><a title="See how this marquee scroll works" href="http://www.powertoearnmoney.com/HTML/marquee.html" target="_blank"><span style="color: #ff0000;">Marquee</span></a></span></span></p>
<p>For our sample, we&#8217;ve coded our text to scroll across <strong>85%</strong> of the screen with a height of <strong>15</strong> (pixels). We&#8217;ve set our delay at <strong>175</strong> milliseconds; our direction to scroll is &#8216;<strong>left</strong>&#8216; and we want our loop to be &#8216;<strong>infinite</strong>&#8216;.   <span style="text-decoration: underline;">Note</span>: You can use marquee code inside of tables also.</p>
<h4>Marquee Attributes</h4>
<p><strong>Width and Height</strong> &#8211; you can assign width and height to your marquee area as either a percentage of the area where the marquee is to display or in pixels. In our sample we&#8217;ve used a percentage for the width and a pixel designation for the height.</p>
<p><strong>Scroll Delay</strong> &#8211; use this attribute to control the amount of time <em>(in milliseconds)</em> that passes before the text scrolls again.</p>
<p><strong>Behavior</strong> &#8211; allows you to select the type of movement you want to use:</p>
<p style="padding-left: 30px;"><strong>Scroll</strong> &#8211; use this for text that starts at one side of the screen and disappears off the other side.</p>
<p style="padding-left: 30px;"><strong>Slide</strong> &#8211; use this for text that starts at one side and stops when it reaches the other side.</p>
<p style="padding-left: 30px;"><strong>Alternate</strong> &#8211; use this for text that starts at one side and bounces back when it reaches the other side.</p>
<p><strong>Direction</strong> &#8211; this determines the direction the text starts from <em>(left or right).</em></p>
<p><strong>Loop</strong> &#8211; allows you to select the number of times the marquee is to pass across the screen. You can also make the text appear continuously by using &#8216;infinite&#8217; in place of a number.</p>
<p><strong>Other</strong> &#8211; additional placement and attributes of the marquee can also be controlled by using the following attributes as well. This information is contained in the first <strong><span style="color: #0000ff;">&lt;marquee&gt;</span></strong> tag.</p>
<p style="padding-left: 30px;">HSPACE (Horizontal space)</p>
<p style="padding-left: 30px;">VSPACE (Vertical Space)</p>
<p style="padding-left: 30px;">ALIGN  (Align &#8211; left, right, center)</p>
<p style="padding-left: 30px;">BGCOLOR  (Background color)</p>
<h4>Marquee Content</h4>
<p>This code is placed between the beginning and ending marquee tags <strong><span style="color: #0000ff;">&lt;marquee&gt;</span></strong> <strong><em>HTML Code for Content Goes Here</em> <span style="color: #0000ff;">&lt;/marquee&gt;</span></strong></p>
<p><strong>Images</strong> &#8211; If you want to use images inside the scroll, keep them as small and as few as possible.</p>
<p><strong>Font</strong> &#8211; color, face and size: use the same code you would use anywhere else in your HTML docuement to control how the text displays.</p>
<p>A scrolling marquee can be used to highlight a specific section of a page, draw attention to a special offer or display a larger quantity of information that you might think you have space for. Hope you have fun using this bit of code.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fpowertoearnmoney.com%2Fhtml%2Fhtml-creating-a-marquee%2F&amp;title=HTML%3A%20%20%20%20Creating%20a%20Marquee"><img src="http://powertoearnmoney.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://powertoearnmoney.com/html/html-creating-a-marquee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Tables:  Column Spanning</title>
		<link>http://powertoearnmoney.com/html/html-tables-column-spanning/</link>
		<comments>http://powertoearnmoney.com/html/html-tables-column-spanning/#comments</comments>
		<pubDate>Mon, 09 May 2011 20:07:20 +0000</pubDate>
		<dc:creator>AdminP</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Tables Column spanning]]></category>

		<guid isPermaLink="false">http://powertoearnmoney.com/?p=3086</guid>
		<description><![CDATA[<p>We&#8217;ve seen how using borders, rules, cellpadding, cellspacing  and background colors for tables can give you a lot of control over how your information will display; however, there may be times when you will want to change the way the cells. i.e, columns display.</p>
<p>In this post, we&#8217;re going to see how to change the way [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-3092" title="tablespan1a" src="http://powertoearnmoney.com/wp-content/uploads/2011/05/tablespan1a.jpg" alt="" width="110" height="110" />We&#8217;ve seen how using <a title="HTML Tables - External Borders" href="http://powertoearnmoney.com/html/external-table-borders/" target="_blank">borders</a>, <a title="HTML Tables:  Internal rules " href="http://powertoearnmoney.com/html/html-internal-table-borders/" target="_blank">rules</a>, <a title="HTML Tables:  Cellpadding &amp; Cellspacing" href="http://powertoearnmoney.com/html/external-table-borders/" target="_blank">cellpadding, cellspacing </a> and <a title="HTML Tables:   Background Colors" href="http://powertoearnmoney.com/html/html-tables-colored-backgrounds/" target="_blank">background colors</a> for tables can give you a lot of control over how your information will display; however, there may be times when you will want to change the way the cells. i.e, columns display.</p>
<p>In this post, we&#8217;re going to see how to change the way columns display within a specific row.  All HTML code will be shown in <strong><span style="color: #0000ff;">blue</span></strong>.  <em>(Note:  The terms column and cell can be used interchangeably.)</em></p>
<p>You can control the number of columns, i.e, cells,  a line of text is to span by using colspan=N where N is the number of columns to span. This allows manipulation of the columns within individual rows. For each of our examples below, we&#8217;ll be using a table that has 3 rows and 3 columns (cells), a border of 1 and cellpadding of 10.</p>
<h5>Example 1</h5>
<p>Our first table will have a heading in row 1 that we want to span all 3 columns and be centered (Figure 1:4):</p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;table cellpadding=&#8221;10&#8243; border=&#8221;1&#8243;&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td colspan=&#8221;3&#8243;&gt;&lt;center&gt;<span style="color: #000000;">Our Heading</span>&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-1</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-</span>2 &lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-3 </span>&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td&gt; <span style="color: #000000;">Row 3 Cell-1</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 3 Cell-2</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 3 Cell-3 </span>&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;/table&gt;</span></strong></p>
<p><img class="alignnone size-full wp-image-3087" title="Table_cellspan1-4" src="http://powertoearnmoney.com/wp-content/uploads/2011/05/Table_cellspan1-4.jpg" alt="" width="475" height="146" /></p>
<p><strong>Note:</strong> There are no vertical borders in row 1 since we are spanning all three (3) columns but the remainder of the table displays with all 3 columns.</p>
<h5>Example 2</h5>
<p>Next, let&#8217;s say we want our table to have a heading in row 1 that again spans all three columns, have our second row display with 2 columns where the first column spans columns 1 and 2 of row 3. Row 3 has no changes. (Figure 2:5)</p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;table cellpadding=&#8221;10&#8243; border=&#8221;1&#8243;&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td colspan=&#8221;3&#8243;&gt;&lt;center&gt;<span style="color: #000000;">Our Heading</span>&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td colspan=&#8221;2&#8243;&gt;&lt;center&gt;<span style="color: #000000;"> Row 2 Cell-1 </span>&lt;/center&gt;&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-2</span>&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td&gt; <span style="color: #000000;">Row 3 Cell-1</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 3 Cell-2</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 3 Cell-3 </span>&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;/table&gt;</span></strong></p>
<p><strong><span style="color: #0000ff;"> </span></strong></p>
<p><img class="alignnone size-full wp-image-3088" title="Table_cellspan2-5" src="http://powertoearnmoney.com/wp-content/uploads/2011/05/Table_cellspan2-5.jpg" alt="" width="475" height="146" /></p>
<h5>Example 3</h5>
<p>In our final example, we will have our heading spanning 3 columns, row 2 will have no changes, and row 3 will have 2 columns &#8230; where the first column remains as is but with the second column spanning columns 2 and 3. (Figure 3:6)</p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;table cellpadding=&#8221;10&#8243; border=&#8221;1&#8243;&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td colspan=&#8221;3&#8243;&gt;&lt;center&gt;<span style="color: #000000;">Our Heading</span>&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td&gt;<span style="color: #000000;"> Row 2 Cell-1</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-2</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-3 </span>&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td&gt; <span style="color: #000000;">Row 3 Cell-1 </span>&lt;/td&gt;&lt;td colspan=&#8221;2&#8243;&gt;&lt;center&gt; <span style="color: #000000;">Row 3 Cell-2 </span>&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;/table&gt;</span></strong></p>
<p><img class="alignnone size-full wp-image-3089" title="Table_cellspan3-6" src="http://powertoearnmoney.com/wp-content/uploads/2011/05/Table_cellspan3-6.jpg" alt="" width="475" height="146" /></p>
<h4>Conclusion</h4>
<p>From these simple examples, you can see how using <em>colspan=</em> offers a lot of flexibility with many useful applications. Want to learn more about writing HTML tables?</p>
<h4 style="text-align: center;"><a href="http://www.amazon.com/gp/search?ie=UTF8&amp;keywords=quickstart%20guide%20html%20elizabeth%20castro&amp;tag=texantmal-20&amp;index=books&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325">Get the HTML Quick Start Guide by Elizabeth Castro available from Amazon</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=texantmal-20&amp;l=ur2&amp;o=1" border="0" alt="" width="1" height="1" /></h4>
<p style="text-align: left;">. . . where  you&#8217;ll  learn much more about writing tables, i.e, tables and forms, captions, column groups &#8211; as well as everything else you need to write your own HTML web pages.   These quick start guides are the best because they use  pictures rather than lengthy explanations. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fpowertoearnmoney.com%2Fhtml%2Fhtml-tables-column-spanning%2F&amp;title=HTML%20Tables%3A%20%20Column%20Spanning"><img src="http://powertoearnmoney.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://powertoearnmoney.com/html/html-tables-column-spanning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Tables:  Colored Backgrounds</title>
		<link>http://powertoearnmoney.com/html/html-tables-colored-backgrounds/</link>
		<comments>http://powertoearnmoney.com/html/html-tables-colored-backgrounds/#comments</comments>
		<pubDate>Mon, 02 May 2011 19:47:03 +0000</pubDate>
		<dc:creator>AdminP</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://powertoearnmoney.com/?p=3060</guid>
		<description><![CDATA[<p></p>
<p>.</p>
<p>We&#8217;ve seen how to write the HTML code for external table borders and internal table rules, but there are other simple  pieces of HTML code that can be added to the &#60;table&#62;&#60;tr&#62;&#60;td&#62;  code  to change how the table displays.</p>
<p>These extra bits of code can change the not only the appearance of the table by giving the table or portions [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-3070" title="tablebgcolormain" src="http://powertoearnmoney.com/wp-content/uploads/2011/05/tablebgcolormain.jpg" alt="" width="110" height="110" /></p>
<p><span style="color: #ffffff;">.</span></p>
<p>We&#8217;ve seen how to write the HTML code for <a title="How to write HTML code for external table borders." href="http://powertoearnmoney.com/html/external-table-borders/" target="_blank">external table borders</a> and <a title="How to write HTML for internal table lines, ie, rules. " href="http://powertoearnmoney.com/html/html-internal-table-borders/" target="_blank">internal table rules</a>, but there are other simple  pieces of HTML code that can be added to the &lt;table&gt;&lt;tr&gt;&lt;td&gt;  code  to change how the table displays.</p>
<p>These extra bits of code can change the not only the appearance of the table by giving the table or portions of it a colored background but also  control  the layout of the table  by <em>manipulating</em> the placement of the table&#8217;s cells.  </p>
<p>While both of these will affect how the table is displayed,  for our purposes of this post, we&#8217;ll only be covering  the specific HTML code used to get a colored background for:</p>
<ul>
<li>Whole tables</li>
<li>Table rows</li>
<li>Table cells</li>
</ul>
<p> </p>
<h4>Colored Backgrounds</h4>
<p>Using background color for either the whole table, the rows or cells can help separate blocks of  information presented in the table or highlight the whole table on a page  making the table and it&#8217;s contents stand out.</p>
<p>For our examples,  we&#8217;ll be using a table with 2 rows and 3 columns, and  hexadecimal colors for the backgrounds.  We&#8217;ll also be using a border of 1 and cellpadding of 10 to make viewing the different rows and cells easier. As usual, all HTML code will be shown in <strong><span style="color: #0000ff;">blue.</span></strong></p>
<p><strong>Note:</strong> The <em>bgcolor=</em>  is in the <em>&lt;table&gt;</em> code thus affecting the whole table.</p>
<p><strong>Table with complete colored background (Figure 1):</strong></p>
<p style="padding-left: 30px;"><span style="color: #0000ff;"><strong>&lt;table bgcolor=&#8221;#9ddfff&#8221; cellpadding=&#8221;10&#8243; border=&#8221;1&#8243;&gt;</strong></span></p>
<p style="padding-left: 30px;"><span style="color: #0000ff;"><strong>&lt;tr&gt;&lt;td&gt; <span style="color: #000000;">Row 1 Cell-1 </span>&lt;/td&gt;&lt;td&gt;<span style="color: #000000;"> Row 1 Cell-2</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 1 Cell-3</span>&lt;/td&gt;&lt;/tr&gt;</strong></span></p>
<p style="padding-left: 30px;"><span style="color: #0000ff;"><strong>&lt;tr&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-1</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-2</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-3 </span>&lt;/td&gt;&lt;/tr&gt;</strong></span></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;/table&gt;</span></strong></p>
<p><strong><img class="alignnone size-full wp-image-3061" title="Table_bgcolor_1" src="http://powertoearnmoney.com/wp-content/uploads/2011/05/Table_bgcolor_1.jpg" alt="" width="475" height="135" /></strong></p>
<p><strong>Table with background color for Row 1 only (Figure 2):</strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;table cellpadding=&#8221;10&#8243; border=&#8221;1&#8243;&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr bgcolor=&#8221;#9ddfff&#8221; &gt;&lt;td&gt; <span style="color: #000000;">Row 1 Cell-1 </span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 1 Cell-2</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 1 Cell-3</span>&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-1 </span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-2 </span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-3</span>&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;/table&gt;</span></strong></p>
<p><strong>Note:</strong>   The <em>bgcolor= </em> should be  in the <em>&lt;tr&gt;</em>  code where you want the colored background to show for the whole row.</p>
<p><strong><img class="alignnone size-full wp-image-3063" title="Table_bgcolor_2" src="http://powertoearnmoney.com/wp-content/uploads/2011/05/Table_bgcolor_2.jpg" alt="" width="475" height="117" /></strong></p>
<p><strong> </strong></p>
<p><strong>Table with background color for Row 1 Cell-3; and Row 2 Cell 1 (Figure 3):</strong></p>
<p><strong>Note:</strong>   The <em>bgcolor=</em>  should be  in the &lt;td&gt; cell code  for the cell(s) where you  want the background color to show.</p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;table cellpadding=&#8221;10&#8243; border=&#8221;1&#8243;&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td&gt; <span style="color: #000000;">Row 1 Cell-1 </span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 1 Cell-2</span>&lt;/td&gt;&lt;td bgcolor=&#8221;#9ddfff&#8221;&gt; <span style="color: #000000;">Row 1 Cell-3 </span>&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;tr&gt;&lt;td bgcolor=&#8221;#9ddfff&#8221;&gt; <span style="color: #000000;">Row 2 Cell-1</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-2</span>&lt;/td&gt;&lt;td&gt; <span style="color: #000000;">Row 2 Cell-3</span>&lt;/td&gt;&lt;/tr&gt;</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #0000ff;">&lt;/table&gt;</span></strong></p>
<p><img class="alignnone size-full wp-image-3064" title="Table_bgcolor_3" src="http://powertoearnmoney.com/wp-content/uploads/2011/05/Table_bgcolor_3.jpg" alt="" width="475" height="116" /></p>
<h4>Conclusion</h4>
<p>We&#8217;ve given you some basic examples of how you can use colored backgrounds in tables &#8211; but, don&#8217;t think this is all you can do.   You may want to  have a table with a colored background and then assign different colors to the rows or cells.    There are no limits &#8211; so be creative and have some fun with tables.</p>
<p>Join us next time when we&#8217;ll discuss how to use cellspanning to control how our table displays the heading and other information.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fpowertoearnmoney.com%2Fhtml%2Fhtml-tables-colored-backgrounds%2F&amp;title=HTML%20Tables%3A%20%20Colored%20Backgrounds"><img src="http://powertoearnmoney.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://powertoearnmoney.com/html/html-tables-colored-backgrounds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

