<?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>bgallz.org &#124; Web coding &#38; design tutorials, scripts, resources and more. &#187; HTML tags</title>
	<atom:link href="http://bgallz.org/category/code/html-tags/feed/" rel="self" type="application/rss+xml" />
	<link>http://bgallz.org</link>
	<description>Web coding &#38; design tutorials, scripts, resources and more.</description>
	<lastBuildDate>Tue, 10 Jan 2012 00:58:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Avoid Duplicate Content Pages</title>
		<link>http://bgallz.org/907/avoid-duplicate-content-pages/</link>
		<comments>http://bgallz.org/907/avoid-duplicate-content-pages/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 22:41:29 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[HTML tags]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[pages]]></category>

		<guid isPermaLink="false">http://bgallz.org/?p=907</guid>
		<description><![CDATA[Many people do not think about the possibility of duplicate content  pages on their website, when this is very common and easily avoidable.  All it takes is a little HTML in the head tags of the page.
What is a duplicate content page?
Duplicate content is content that is showing up on the Internet by multiple URLs. Another words, a ...]]></description>
			<content:encoded><![CDATA[<p>Many people do not think about the possibility of duplicate content  pages on their website, when this is very common and easily avoidable.  All it takes is a little HTML in the head tags of the page.</p>
<p><span style="text-decoration: underline;"><strong>What is a duplicate content page?</strong></span></p>
<p>Duplicate content is content that is showing up on the Internet by multiple URLs. Another words, a page like <em>aboutus.php</em> might be coming with the same content as <em>aboutus.php?do=send</em>.</p>
<p>This causes some problems with search engines as far as determining  which page the engine should use for query matches, page ranking, use of  meta tags between the two versions, and just which one to include for  their indices.</p>
<p><span style="text-decoration: underline;"><strong>How do you avoid duplicate content?</strong></span></p>
<p>Let&#8217;s say these are your pages that are coming with the same content:</p>
<p><strong>Original source:</strong> <span style="color: blue;"><br />
post.php?id=1</span>.</p>
<p><strong>Duplicate content pages:</strong><br />
<span style="color: blue;">post.php?id=1&amp;lang=en<br />
post.php?id=1&amp;do=login</span></p>
<p>On post.php we can include a &lt;link&gt; tag that will reference to the  original source so Search Engines gather the original correct  information from the server, rather than trying to decide between the  serveral duplicate pages.</p>
<p>Place in the &lt;head&gt; tags of <strong>post.php</strong>:</p>
<pre>
echo&nbsp;&#039;&lt;link&nbsp;href=&quot;./post.php?id=&#039;.((int)$_GET[&#039;id&#039;]).&#039;&quot;&nbsp;rel=&quot;canonical&quot;&nbsp;/&gt;&#039;;
</pre>
<p>This will take the <strong>$id</strong> and put it into the URL as just <strong>post.php?id=$id</strong>.  So any other URL parameters, such as lang=en, or do=login, will not be  read as a duplicate page, but tell search engines to use the content of  just <strong>post.php?id=$id</strong>.</p>
<p>If you do not need to use PHP and you just want the page to load a set content of just <strong>post.php</strong> then you would use the tag like so:</p>
<pre>
&lt;link href=&quot;./post.php&quot; rel=&quot;canonical&quot; /&gt;
</pre>
<p>When using this method, you want to be sure that you are consistent  throughout your website with your canonical URLs. If your canonical url  is like: &#8220;http://www.bgallz.org/&#8221; then you want to use &#8220;www&#8221; in all of  your URL references and tags for the domain.</p>
<p>Now, if you have pages that you do NOT want included in any search  engine queries or crawled by search engine bots, then you want to use a  META tag with &#8220;noindex, nofollow&#8221;.</p>
<p>To block a page from search engine indexes places the following in the &lt;head&gt; tags:</p>
<pre>
<pre>
&lt;meta name=&quot;robots&quot; content=&quot;noindex, nofollow&quot;&gt;
</pre>
<p>Walla!</pre>
<img src="http://bgallz.org/?ak_action=api_record_view&id=907&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://bgallz.org/907/avoid-duplicate-content-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Div Float Property</title>
		<link>http://bgallz.org/686/html-div-float-property/</link>
		<comments>http://bgallz.org/686/html-div-float-property/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 19:16:25 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[HTML tags]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://bgallz.org/?p=686</guid>
		<description><![CDATA[Using the HTML tag &#8211; &#60;div&#62; and the float style property, you can make designs for your websites. Well, you can make layouts for where design could be. This is a good structural tool in laying out where content will be on your web pages, images, blurbs, etc.
Let&#8217;s say we want a page to look like this:
First I&#8217;m going to ...]]></description>
			<content:encoded><![CDATA[<p>Using the HTML tag &#8211; &lt;div&gt; and the float style property, you can make designs for your websites. Well, you can make layouts for where design could be. This is a good structural tool in laying out where content will be on your web pages, images, blurbs, etc.</p>
<div id="attachment_689" class="wp-caption alignright" style="width: 298px"><a href="http://bgallz.org/wp-content/uploads/2010/11/divfloatlayout1.gif"><img class="size-full wp-image-689" title="divfloatlayout" src="http://bgallz.org/wp-content/uploads/2010/11/divfloatlayout1.gif" alt="Div Float Layout" width="288" height="288" /></a><p class="wp-caption-text">Div Float Layout</p></div>
<p>Let&#8217;s say we want a page to look like this:</p>
<p>First I&#8217;m going to set up the CSS styles we will set our &lt;div&gt;&#8217;s to in the HTML to give this page the right look as far as padding, margins, borders, etc. Once we have all the styles defined we will call them to the DIV tags in our HTML like so: &lt;div class=&#8221;CLASSNAME&#8221;&gt;. Using the right float&#8217;s in the right order will place our DIVs in the right places to make this layout.</p>
<p>This will go in our &lt;head&gt;  tags of the HTML page:</p>
<pre>
html, body, center {
padding: 0px;
margin: 0px;
height: 100%;
}
.header {
padding: 8px;
vertical-align: middle;
height: 80px;
background: #d60000;
}
.banner {
float: left;
border: 0;
vertical-align: middle;
width: 500px;
height: 60px;
}
.ads {
padding: 10px 0px;
float: right;
width: 300px;
height: 60px;
vertical-align: middle;
background: #ffb448;
}
.wrapper { /* Main page holder. */
padding: 10px;
width: 875px;
background: #fff;
height: 100%;
}
.page {
padding: 10px 0px;
width: 630px;
float: left;
height: 100%;
}
.top {
padding: 5px;
height: 40px;
background: #ff7c7c;
margin:0;
}
#boxes {
padding: 5px 0px;
}
.box {
width: 197px;
height: 197px;
padding: 3px;
margin: 3px;
background: #ffddaa;
float: right;
}
.rightside {
float: right;
text-align: center;
height: 100%;
padding: 10px 0px;
}
.nav {
padding: 5px;
background: #ccc;
width: 200px;
height: 100%;
min-height: 600px;
}
.content {
margin: 20px 0px;
width: 600px;
text-align: left;
}
</pre>
<p>Now we have to write the HTML to use these styles appropriately.</p>
<p>Here is our &lt;body&gt; HTML:</p>
<pre>
&lt;body&gt;
&lt;center&gt;
&lt;div class=&quot;wrapper&quot; align=&quot;center&quot;&gt;
&lt;div class=&quot;header&quot;&gt;
&lt;div class=&quot;ads&quot;&gt;Ads Here&lt;/div&gt;
&lt;div class=&quot;banner&quot;&gt;Banner Here&lt;/div&gt;
&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;rightside&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;nav&quot;&gt;Navigation&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;page&quot;&gt;
&lt;div class=&quot;top&quot;&gt;Content Here&lt;/div&gt;
&lt;div id=&quot;boxes&quot;&gt;
&lt;div class=&quot;box&quot; id=&quot;3&quot;&gt;Box 3&lt;/div&gt;
&lt;div class=&quot;box&quot; id=&quot;2&quot;&gt;Box 2&lt;/div&gt;
&lt;div class=&quot;box&quot; id=&quot;1&quot;&gt;Box 1&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;content&quot;&gt;
&lt;p&gt;Content Here, lots and lots of content here! Content Here, lots and lots of content here! Content Here, lots and lots of content here! Content Here, lots and lots of content here! Content Here, lots and lots of content here! Content Here, lots and lots of content here! Content Here, lots and lots of content here! Content Here, lots and lots of content here!Content Here, lots and lots of content here!&lt;/p&gt;
&lt;p&gt;Content Here, lots and lots of content here!Content Here, lots and lots of content here!Content Here, lots and lots of content here!Content Here, lots and lots of content here!Content Here, lots and lots of content here!&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/center&gt;
&lt;/body&gt;
</pre>
<p><a title="Div Float Layout" href="http://bgallz.org/html/divfloat.html" target="_blank">Take a look at the HTML in action here!</a></p>
<p>If you notice in the HTML the box&#8217;s are placed in descending order inside the &#8220;boxes&#8221; div ID. Since the box class is set to to the right:</p>
<pre>
.box {
float: right;
}
</pre>
<p>We put the boxes in descending order so that the HTML will read down the page and float the first one to the right, then the next, then the last. So it floats BOX3, then BOX2, then BOX1.</p>
<p>Using the float style property of DIV tags is really useful in making layouts because it does not require any real guidelines to follow as far as where it is on the page. This sounds a little wordy but basically with a combination of float, and position style attributes you can make your DIV&#8217;s go where ever you want.</p>
<img src="http://bgallz.org/?ak_action=api_record_view&id=686&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://bgallz.org/686/html-div-float-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML body tag</title>
		<link>http://bgallz.org/259/html-body-tag/</link>
		<comments>http://bgallz.org/259/html-body-tag/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 06:04:03 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[HTML tags]]></category>
		<category><![CDATA[body]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://bgallz.org/?p=259</guid>
		<description><![CDATA[The body tag in a HTML document defines the documents body. This includes the majority of the displayed content on the page, such as hyperlinks, images, etc.
Here is a basic HTML document with the body tag:

&#60;html&#62;
&#60;head&#62;
&#60;title&#62;HTML Document&#60;/title&#62;
&#60;/head&#62;

&#60;body&#62;
Body content.
&#60;/body&#62;

&#60;/html&#62;

The body tag is supported by all major web browsers.
Body tag standard attributes:



Attribute
Value
Information


class
classname
Specified class name to an element.


dir
rtl
ltr
Specified text direction to an element.


id
id
Specified ...]]></description>
			<content:encoded><![CDATA[<p>The body tag in a HTML document defines the documents body. This includes the majority of the displayed content on the page, such as hyperlinks, images, etc.</p>
<p>Here is a basic HTML document with the body tag:</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;HTML Document&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
Body content.
&lt;/body&gt;

&lt;/html&gt;
</pre>
<p>The body tag is supported by all major web browsers.</p>
<p><strong>Body tag standard attributes:</strong></p>
<table class="content_table" border="0" cellspacing="1" cellpadding="2" width="100%" align="center">
<tbody>
<tr>
<td class="content_thead" align="left">Attribute</td>
<td class="content_thead" align="left">Value</td>
<td class="content_thead" align="left">Information</td>
</tr>
<tr>
<td align="left">class</td>
<td align="left"><em>classname</em></td>
<td align="left">Specified class name to an element.</td>
</tr>
<tr>
<td align="left">dir</td>
<td align="left"><em>rtl</em></p>
<p><em>ltr</em></td>
<td align="left">Specified text direction to an element.</td>
</tr>
<tr>
<td align="left">id</td>
<td align="left"><em>id</em></td>
<td align="left">Specified id name to an element.</td>
</tr>
<tr>
<td align="left">lang</td>
<td align="left"><em>language_code</em></td>
<td align="left">Specified language to an element.</td>
</tr>
<tr>
<td align="left">style</td>
<td align="left"><em>style</em></td>
<td align="left">Specified style definition to an element.</td>
</tr>
</tbody>
</table>
<img src="http://bgallz.org/?ak_action=api_record_view&id=259&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://bgallz.org/259/html-body-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using HTML Meta tags</title>
		<link>http://bgallz.org/28/using-html-meta-tags/</link>
		<comments>http://bgallz.org/28/using-html-meta-tags/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 15:08:43 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[HTML tags]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://bgallz.org/?p=28</guid>
		<description><![CDATA[Meta HTML tags can be very helpful for gaining some search engine rank and promoting your website better. However, these simple tags are not going to drive your website immediately to the top of the lists.
Meta tags are basically information located in the head of your webpage(s). This content is not visible to the viewer, however does communicate with the ...]]></description>
			<content:encoded><![CDATA[<p>Meta HTML tags can be very helpful for gaining some search engine rank and promoting your website better. However, these simple tags are not going to drive your website immediately to the top of the lists.</p>
<p>Meta tags are basically information located in the head of your webpage(s). This content is not visible to the viewer, however does communicate with the browser.</p>
<p>Some of the most common meta tags include:</p>
<ul>
<li>Description</li>
<li>Keywords</li>
<li>Character Set</li>
<li>Author</li>
<li>Robots</li>
</ul>
<p>Here is an example for meta tags of a website about fast cars:</p>
<pre>
&lt;meta name=&quot;description&quot; content=&quot;Really fast cars, fast car photos, reviews, and information. Awesome fast cars.&quot; /&gt;
&lt;meta name=&quot;keywords&quot; content=&quot;Fast
cars
photos
reviews
speed&quot; /&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=ISO-8859-1&quot; /&gt;
</pre>
<p>The <strong>robots</strong> tag is used to tell whether or not a page should be indexed by search engines. For example, if you don&#8217;t want your page to be indexed use the following code:</p>
<pre>
&lt;head&gt;
&lt;title&gt;Page Not Indexed&lt;/title&gt;
&lt;meta name=&quot;robots&quot; content=&quot;NOINDEX&quot;&gt;
&lt;/head&gt;
</pre>
<p>The meta tags are supported by all major browsers out there. These can help your website with it&#8217;s niche and search engine listings.</p>
<img src="http://bgallz.org/?ak_action=api_record_view&id=28&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://bgallz.org/28/using-html-meta-tags/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

