<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.2" -->
<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/"
	>

<channel>
	<title>pootato.org &#187; HTML</title>
	<link>http://pootato.org</link>
	<description>Tutorials for your website</description>
	<pubDate>Mon, 26 May 2008 19:56:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>
	<language>en</language>
			<item>
		<title>Coding a layout</title>
		<link>http://pootato.org/tutorials/html/coding-a-layout/</link>
		<comments>http://pootato.org/tutorials/html/coding-a-layout/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 19:42:31 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/html/coding-a-layout/</guid>
		<description><![CDATA[Edit: Added display: inline; to #text and #sidebar because of IE6 bugs.
You reached the coding part of the tutorial. The first part is here, it explains how to make this simple layout in Photoshop. We&#039;re going to code the simple layout we made here. First, let&#039;s prepare our HTML file. Put all the codes we&#039;ll [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Edit:</strong> Added <samp>display: inline;</samp> to <samp>#text</samp> and <samp>#sidebar</samp> because of IE6 bugs.</p>
<p>You reached the coding part of the tutorial. The first part is <a href="http://pootato.org/tutorials/photoshop/making-a-simple-layout/">here</a>, it explains how to make <a href="/examples/simplelayout/coding.php?cssfile=style5">this simple layout</a> in Photoshop. We&#039;re going to code the simple layout we made here. First, let&#039;s prepare our HTML file. Put all the codes we&#039;ll need first. Between <samp>&lt;head&gt;</samp> and <samp>&lt;/head&gt;</samp>, don&#039;t forget to link the HTML file to style.css that we will create afterwards:</p>
<p><code> &lt;link rel="stylesheet" href="<strong>style.css</strong>&#034; type=&#034;text/css&#034; media=&#034;screen&#034; /&gt; </code></p>
<p> <a href="http://pootato.org/tutorials/html/coding-a-layout/#more-126" class="more-link">(more&#8230;)</a></p>
<p class="akst_link"><a href="http://pootato.org/?p=126&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_126" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/coding-a-layout/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Favicon</title>
		<link>http://pootato.org/tutorials/html/favicon/</link>
		<comments>http://pootato.org/tutorials/html/favicon/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 19:27:57 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/html/favicon/</guid>
		<description><![CDATA[So you want to create a favicon&#8230; But what&#039;s a favicon? Look at the adress bar, you will see a little poo. If you&#039;re on a site that doesn&#039;t have a favicon, you will see Internet Explorer&#039;s icon or a bullet in Firefox.
First, you have to create your icon&#8230; If you already know how to [...]]]></description>
			<content:encoded><![CDATA[<p>So you want to create a favicon&#8230; But what&#039;s a favicon? Look at the adress bar, you will see a little poo. If you&#039;re on a site that doesn&#039;t have a favicon, you will see Internet Explorer&#039;s icon or a bullet in Firefox.</p>
<p>First, you have to create your icon&#8230; If you already know how to make an icon, do a 16&#215;16 pixels sized one. If not, I recommend you those helpful links:<br />
<a href="http://www.favicon.co.uk/">Favicon maker</a><br />
<a href="http://www.chami.com/html-kit/services/favicon/">Favicon from pics</a><br />
<a href="http://www.123promotion.co.uk/favicon/">Favicon generator</a><br />
<a href="http://www.degraeve.com/favicon/">Favicon generator bis</a></p>
<p>Now that you have your icon, (name and extension should be <strong>favicon.ico</strong>) Upload it to your server root folder.</p>
<p><code>&lt;link rel="Shortcut Icon" href="<strong>/favicon.ico</strong>&#034; type=&#034;image/x-icon&#034; /&gt;</code></p>
<p class="akst_link"><a href="http://pootato.org/?p=58&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_58" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/favicon/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Image Maps Coordinates</title>
		<link>http://pootato.org/tutorials/html/image-maps-coordinates/</link>
		<comments>http://pootato.org/tutorials/html/image-maps-coordinates/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 17:43:40 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/html/image-maps-coordinates/</guid>
		<description><![CDATA[First of all, read the image maps tutorial. Since that question has been asked pretty often&#8230; how do you find the right coords when coding an image map? Of course, the easiest way would be to install a software or do it with your code editor, but if you really want to do it by [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, read the <a href="http://pootato.org/tutorials/html/images-maps/">image maps</a> tutorial. Since that question has been asked pretty often&#8230; how do you find the right coords when coding an image map? Of course, the easiest way would be to install a software or do it with your code editor, but if you really want to do it by yourself&#8230; Here is my solution. I will use this picture; the areas in red are the areas we want to be clickable.</p>
<div class="center"><img src="/schemas/2007/08/coords01.jpg" alt="schema" height="156" width="424" /></div>
<p>Remember the code? It&#039;s something like this.</p>
<p><code> &lt;map name="<strong>Map</strong>&#034;&gt;<br />
&lt;!&#8211; BOX 1&#8211;&gt;<br />
&lt;area shape=&#034;<em>rect</em>&#034; coords=&#034;<strong>x1</strong>, <strong>x2</strong>, <strong>x3</strong>, <strong>x4</strong>&#034; href=&#034;<strong>page1.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;!&#8211; BOX x &#8211;&gt;<br />
&lt;area shape=&#034;<em>rect</em>&#034; coords=&#034;<strong>xx</strong>, <strong>xx</strong>, <strong>xx</strong>, <strong>xx</strong>&#034; href=&#034;<strong>page2.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;/map&gt; </code></p>
<div class="center"><img src="/schemas/2007/08/coords02.jpg" alt="schema" height="156" width="424" /></div>
<p>Just like in maths, we will find X1, X2, X3 and X4. Open your image in your graphics editor. Select the area like in this image first, press [ <strong>Ctrl + C and Ctrl + N</strong> ]. A new document window will pop up, note down the <strong>width</strong> of the document: it is <em>X1</em>, the <strong>height</strong> of the document is <em>X2</em>. So now your code will look like this:</p>
<p><code> &lt;map name="<strong>Map</strong>&#034;&gt;<br />
&lt;!&#8211; BOX 1&#8211;&gt;<br />
&lt;area shape=&#034;<em>rect</em>&#034; coords=&#034;<strong>27</strong>, <strong>18</strong>, <strong>x3</strong>, <strong>x4</strong>&#034; href=&#034;<strong>page1.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;/map&gt; </code></p>
<div class="center"><img src="/schemas/2007/08/coords03.jpg" alt="schema" height="156" width="424" /></div>
<p>Now, X3 and X4 are left. Just like before, select the area like I did above. Because now, you need the pixels from the left to the end of the box and the pixels from the top to the bottom of the box. Press [ <strong>Ctrl + C and Ctrl + N</strong> ]. A new document window will pop up, note down the <strong>width</strong> of the document: it is <em>X3</em>, the <strong>height</strong> of the document is <em>X4</em>. Your first rectangular area is done:</p>
<p><code> &lt;map name="<strong>Map</strong>&#034;&gt;<br />
&lt;!&#8211; BOX 1&#8211;&gt;<br />
&lt;area shape=&#034;<em>rect</em>&#034; coords=&#034;<strong>27</strong>, <strong>18</strong>, <strong>110</strong>, <strong>51</strong>&#034; href=&#034;<strong>page1.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;/map&gt; </code></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5942695663462142";
google_alternate_color = "FFFFFF";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
//2007-08-17: links
google_ad_channel = "3262863640";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "7F7F7F";
google_color_text = "999999";
google_color_url = "CCCCCC";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class="center"><img src="/schemas/2007/08/coords04.jpg" alt="schema" height="156" width="424" /></div>
<p>Now, you just have to repeat the process with the two areas left. Your final code should look like this:</p>
<p><code> &lt;map name="<strong>Map</strong>&#034;&gt;<br />
&lt;!&#8211; BOX 1 (blue)&#8211;&gt;<br />
&lt;area shape=&#034;<em>rect</em>&#034; coords=&#034;<strong>27</strong>, <strong>18</strong>, <strong>110</strong>, <strong>51</strong>&#034; href=&#034;<strong>page1.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;!&#8211; BOX 2 (red)&#8211;&gt;<br />
&lt;area shape=&#034;<em>rect</em>&#034; coords=&#034;<strong>45</strong>, <strong>98</strong>, <strong>122</strong>, <strong>140</strong>&#034; href=&#034;<strong>page2.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;!&#8211; BOX 3 (green)&#8211;&gt;<br />
&lt;area shape=&#034;<em>rect</em>&#034; coords=&#034;<strong>298</strong>, <strong>95</strong>, <strong>415</strong>, <strong>138</strong>&#034; href=&#034;<strong>page3.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;/map&gt; </code></p>
<p>Let&#039;s test it! :) Mouse over one, two, three and see if it works!</p>
<div class="center"><img src="/schemas/2007/08/coords05.jpg" alt="schema" usemap="#mappy" border="0" height="156" width="424" /></div>
<map name="mappy" id="mappy">
<area href="#" shape="rect" coords="27, 18, 110, 51" alt="schema" />
<area href="#" shape="rect" coords="45, 98, 122, 140" alt="schema" />
<area href="#" shape="rect" coords="298, 95, 415, 138" alt="schema" /> </map>
<p>Hooray, it works. The process is the same for polygonal and circular spots, read carefully the <a href="http://pootato.org/tutorials/html/images-maps/">other tutorial</a> and try to apply this one?</p>
<p class="akst_link"><a href="http://pootato.org/?p=47&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_47" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/image-maps-coordinates/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Image Maps</title>
		<link>http://pootato.org/tutorials/html/image-maps/</link>
		<comments>http://pootato.org/tutorials/html/image-maps/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 17:39:18 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/html/image-maps/</guid>
		<description><![CDATA[What are images maps? Simple, for example, you have a picture, with your menu on, and instead of linking this picture to a page, you need to link it to several pages, you can allow your visitors to go on a page by clicking on a part of the picture, and to an other page [...]]]></description>
			<content:encoded><![CDATA[<p>What are <strong>images maps</strong>? Simple, for example, you have a picture, with your menu on, and instead of linking this picture to a page, you need to link it to several pages, you can allow your visitors to go on a page by clicking on a part of the picture, and to an other page by clicking an other part.</p>
<p><code> &lt;img src="<strong>image_url.gif</strong>&#034; <em>usemap=&#034;#Map&#034;</em> alt=&#034;" /&gt; </code></p>
<p>You need to add the attribute <samp>usemap</samp> you can rename <strong>Map</strong> by whatever you want but never forget the <strong>#</strong> before it, it&#039;s the anchor. First, here is an exemple of a <strong>rectangular</strong> hotspot.</p>
<p><code> &lt;map name="<strong>Map</strong>&#034;&gt;<br />
&lt;!&#8211; BOX 1&#8211;&gt;<br />
&lt;area shape=&#034;<em>rect</em>&#034; coords=&#034;<strong>x1</strong>, <strong>x2</strong>, <strong>x3</strong>, <strong>x4</strong>&#034; href=&#034;<strong>page1.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;!&#8211; BOX x &#8211;&gt;<br />
&lt;area shape=&#034;<em>rect</em>&#034; coords=&#034;<strong>xx</strong>, <strong>xx</strong>, <strong>xx</strong>, <strong>xx</strong>&#034; href=&#034;<strong>page2.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;/map&gt; </code></p>
<p>Significance:<br />
<strong>x1</strong> : pixels from the left at the beginning of the rectangle<br />
<strong>x2</strong> : pixels from the top<br />
<strong>x3</strong> : pixels from the left at the end of the rectangle<br />
<strong>x4</strong> : height of your rectangle<br />
To add more boxes, you will have to copy the box 1 code, then paste it and change the coordinate attribute. You can add as many spots as you want.</p>
<p>Let&#039;s see <strong>circular</strong> hotspots, they are the same as rectangular but it&#039;s circles! It&#039;s obvious, nope?</p>
<p><code> &lt;map name="<strong>Map</strong>&#034;&gt;<br />
&lt;!&#8211; CIRCLE 1&#8211;&gt;<br />
&lt;area shape=&#034;<em>circle</em>&#034; coords=&#034;<strong>x1</strong>, <strong>x2</strong>, <strong>x3</strong>&#034; href=&#034;<strong>page1.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;!&#8211; CIRCLE x &#8211;&gt;<br />
&lt;area shape=&#034;<em>circle</em>&#034; coords=&#034;<strong>xx</strong>, <strong>xx</strong>, <strong>xx</strong>&#034; href=&#034;<strong>page2.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;/map&gt; </code></p>
<p>Significance:<br />
<strong>x1</strong> : pixels from the left for the circle&#039;s center<br />
<strong>x2</strong> : pixels from the top for the circle&#039;s center<br />
<strong>x3</strong> : the circle&#039;s radius<br />
Same as before, you can add as many circles as you want, just copy a line and paste it.</p>
<p>Now, the last category, <strong>polygonal</strong> hotspots, they are a little bit more complicated. Have you learned vectors at school in maths? It&#039;s the same! For exemple, let&#039;s make a triangle. Don&#039;t forget to put the usemap thing in your picture&#039;s tag. The coordinates are a little differents from the circles and the rectangles. Each point you&#039;ll place will have 2 coordinates, <strong>x</strong> &amp; <strong>y</strong>, exactly like in a grid, in maths.</p>
<p><code> &lt;map name="<strong>Map</strong>&#034;&gt;<br />
&lt;!&#8211; POLYGON 1&#8211;&gt;<br />
&lt;area shape=&#034;<em>poly</em>&#034; coords=&#034;<strong>x1</strong>, <strong>x2</strong>, <em>y1</em>, <em>y2</em>, <strong>z1</strong>, <strong>z2</strong>&#034; href=&#034;<strong>page1.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;!&#8211; POLYGON x &#8211;&gt;<br />
&lt;area shape=&#034;<em>poly</em>&#034; coords=&#034;<strong>xx</strong>, <strong>xx</strong>, <strong>xx</strong>, <strong>xx</strong>, <strong>xx</strong>, <strong>xx</strong>&#034; href=&#034;<strong>page2.htm</strong>&#034; alt=&#034;" /&gt;<br />
&lt;/map&gt; </code></p>
<p><img src="/schemas/2007/08/imgmaps.gif" alt="schema" class="left" border="0" height="149" width="181" />Significance:<br />
<strong>x1</strong> : pixels from the left for the first point<br />
<strong>x2</strong> : pixels from the top for the first point<br />
<strong>y1</strong> : pixels from the left for the second point<br />
<strong>y2</strong> : pixels from the top for the second point<br />
<strong>z1</strong> : pixels from the left for the third point<br />
<strong>z2</strong> : pixels from the top for the third point<br />
See? They are like couples. Then, the first point will join the second point and this second point will join the third point to make your triangle! Of course, it&#039;s polygons, so you can add as many points as you want. I hope this tutorial helped.</p>
<p>Of course, for each category of hotspots, you can change the target, add title, alt, etc. To learn how to determinate the X1, X2, etc. by yourself, read <a href="http://pootato.org/tutorials/html/image-maps-coordinates/">this tutorial</a>.</p>
<p class="akst_link"><a href="http://pootato.org/?p=42&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_42" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/image-maps/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Doctypes</title>
		<link>http://pootato.org/tutorials/html/doctypes/</link>
		<comments>http://pootato.org/tutorials/html/doctypes/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 19:19:53 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/website/doctypes/</guid>
		<description><![CDATA[In order to validate your page, the first thing to do is to choose a doctype. Using valid codes is pointless without the two lines which compose the document type declaration. Besides, using valid codes without or with a wrong doctype can cause the page to show up uncorrectly. (I have already experienced that.)
I will [...]]]></description>
			<content:encoded><![CDATA[<p>In order to validate your page, the first thing to do is to choose a doctype. Using valid codes is pointless without the two lines which compose the document type declaration. Besides, using valid codes without or with a wrong doctype can cause the page to show up uncorrectly. (I have already experienced that.)</p>
<p>I will only list HTML 4.01 and XHTML 1.0 doctypes since they&#039;re the most commonly used ones. There are 3 types for each: <samp>Strict</samp>, <samp>Transitional</samp> or <samp>Frameset</samp>.</p>
<ul>
<li><strong>HTML 4.01 Strict</strong>: you can&#039;t use <a href="http://htmlhelp.com/reference/html40/deprecated.html" title="List of deprecated features in HTML 4.01">deprecated elements</a>, nor target attributes in links nor frames.</li>
<li><strong>HTML 4.01 Transitional</strong>: you can use any <a href="http://htmlhelp.com/reference/html40/deprecated.html" title="List of deprecated features in HTML 4.01">deprecated elements</a> and have links targets, but if you have frames, use the next doctype.</li>
<li><strong>HTML 4.01 Frameset</strong>: it is the same as Transitional but it&#039;s a doctype for pages using frames.</li>
</ul>
<p><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"&gt;<br />
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
"http://www.w3.org/TR/html4/loose.dtd"&gt;<br />
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"&gt;</code></p>
<p>It is the same for XHTML 1.0 Strict, Transitional and Frameset.</p>
<ul>
<li><strong>XHTML 1.0 Strict</strong>: you can&#039;t use <a href="http://www.w3schools.com/xhtml/xhtml_ref_byfunc.asp" title="XHTML 1.0 tags">deprecated elements</a>, nor links targets nor frames.</li>
<li><strong>XHTML 1.0 Transitional</strong>: you can use any XHTML 1.0 code, but no frameset.</li>
<li><strong>XHTML 1.0 Frameset</strong>: it is the same as Transitional but it&#039;s a doctype for pages using frames.</li>
</ul>
<p><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;<br />
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br />
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"&gt;</code></p>
<p>Of course, you have to use valid HTML 4.01 or XHTML 1.0 and code properly. Now you can choose the best doctype for you and paste it in your codes. It must be placed at the very top, before the <samp>html</samp> attribute.</p>
<p class="akst_link"><a href="http://pootato.org/?p=15&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_15" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/doctypes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Display codes</title>
		<link>http://pootato.org/tutorials/html/display-codes/</link>
		<comments>http://pootato.org/tutorials/html/display-codes/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 19:18:43 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/website/display-codes/</guid>
		<description><![CDATA[Here are various ways to display HTML codes&#8230;
Using code: (Take care, you will have to replace all &#60; by &#38;lt; and all &#62; by &#38;gt;!) This is what I actually use. I customized it with CSS:
 &#60;code&#62;Your codes come here&#60;/code&#62; Using pre:
 &#60;pre&#62;It keeps the white          [...]]]></description>
			<content:encoded><![CDATA[<p>Here are various ways to display HTML codes&#8230;</p>
<p>Using <samp>code</samp>: (Take care, you will have to replace all <strong>&lt;</strong> by <samp>&amp;lt;</samp> and all <strong>&gt;</strong> by <samp>&amp;gt;</samp>!) This is what I actually use. I customized it with CSS:</p>
<p><code> &lt;code&gt;Your codes come here&lt;/code&gt; </code>Using <samp>pre</samp>:</p>
<p><code> &lt;pre&gt;It keeps the white          space and  lines break but you still have to replace &lt; and &gt; by &amp;lt; and &amp;gt;&lt;/pre&gt; </code></p>
<pre>It keeps the white          space and
lines break but you still have
to replace &lt; and &gt; by &amp;lt; and &amp;gt;</pre>
<p>Using <samp>xmp</samp>: (This shows the exact text you put, you don&#039;t have to replace anything but it&#039;s deprecated)</p>
<p><code>&lt;xmp&gt;&lt;a href="code"&gt;example&lt;/a&gt;&lt;/xmp&gt; </code>Of course, all those tags can be customized via CSS so they will look better.</p>
<p class="akst_link"><a href="http://pootato.org/?p=14&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_14" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/display-codes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tables</title>
		<link>http://pootato.org/tutorials/html/tables/</link>
		<comments>http://pootato.org/tutorials/html/tables/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 19:17:29 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/website/tables/</guid>
		<description><![CDATA[Tables are based on three main tags: table, tr and td : table, table row and table data. First, let&#039;s learn how to make rows. Each tr is a row.
 &#60;table&#62;
&#60;tr&#62; &#60;!&#8211; first row &#8211;&#62;
Row 1 contents
&#60;/tr&#62;  &#60;!&#8211; end of first row &#8211;&#62;
&#60;tr&#62; &#60;!&#8211; second row &#8211;&#62;
Row two contents
&#60;/tr&#62; &#60;!&#8211; end of second row [...]]]></description>
			<content:encoded><![CDATA[<p>Tables are based on three main tags: <samp>table</samp>, <samp>tr</samp> and <samp>td</samp> : table, table row and table data. First, let&#039;s learn how to make rows. Each <samp>tr</samp> is a row.</p>
<p><code> &lt;table&gt;<br />
<strong>&lt;tr&gt;</strong> <em>&lt;!&#8211; first row &#8211;&gt;</em><br />
Row 1 contents<br />
<strong>&lt;/tr&gt;</strong>  <em>&lt;!&#8211; end of first row &#8211;&gt;</em><br />
<strong>&lt;tr&gt;</strong> <em>&lt;!&#8211; second row &#8211;&gt;</em><br />
Row two contents<br />
<strong>&lt;/tr&gt;</strong> <em>&lt;!&#8211; end of second row &#8211;&gt;</em><br />
&lt;/table&gt; </code>Unluckily, this isn&#039;t enough. You have to add data cells to your rows, like this:</p>
<p><code> &lt;table&gt;<br />
&lt;tr&gt; &lt;!-- first row --&gt;<br />
<strong>&lt;td&gt;</strong><em>This is line 1</em><strong>&lt;/td&gt;</strong><br />
&lt;/tr&gt;  &lt;!&#8211; end of first row &#8211;&gt;<br />
&lt;tr&gt; &lt;!&#8211; second row &#8211;&gt;<br />
<strong>&lt;td&gt;</strong><em>This is line 2</em><strong>&lt;/td&gt;</strong><br />
&lt;/tr&gt; &lt;!&#8211; end of second row &#8211;&gt;<br />
&lt;/table&gt;</code>Given there isn&#039;t any attribute, it will display this: (the borders aren&#039;t visibles)</p>
<table>
<tr>
<td>This is line 1</td>
</tr>
<tr>
<td>This is line 2</td>
</tr>
</table>
<p>Now, let&#039;s see how to add columns. It&#039;s simple, you just have to add another &#034;table data&#034; in the &#034;table row&#034;, like this:</p>
<p><code> &lt;table&gt;<br />
&lt;tr&gt; &lt;!-- first row --&gt;<br />
<strong>&lt;td&gt;</strong><em>This is line 1, cell 1</em><strong>&lt;/td&gt;</strong><br />
<strong>&lt;td&gt;</strong><em>This is line 1, cell 2</em><strong>&lt;/td&gt;</strong><br />
&lt;/tr&gt;  &lt;!&#8211; end of first row &#8211;&gt;<br />
&lt;tr&gt; &lt;!&#8211; second row &#8211;&gt;<br />
<strong>&lt;td&gt;</strong><em>This is line 2, cell 1</em><strong>&lt;/td&gt;</strong><br />
<strong>&lt;td&gt;</strong><em>This is line 2, cell 2</em><strong>&lt;/td&gt;</strong><br />
&lt;/tr&gt; &lt;!&#8211; end of second row &#8211;&gt;<br />
&lt;/table&gt; </code>And it will display: (I added a border to make it more visible)</p>
<table border="1">
<tr>
<td>This is line 1, cell 1</td>
<td>This is line 1, cell 2</td>
</tr>
<tr>
<td>This is line 2, cell 1</td>
<td>This is line 2, cell 2</td>
</tr>
</table>
<p>See? It&#039;s simple. If you want ten columns, then add <samp>td</samp> 10 times between <samp>tr</samp> tags. Now, let&#039;s continue with something more complicated&#8230; We&#039;re going to <strong>merge columns</strong>. For example, in your first row, you have two cells and you want only one cell in the second row.</p>
<p><code> &lt;table&gt;<br />
&lt;tr&gt;<br />
<strong>&lt;td&gt;</strong><em>Line 1, cell 1</em><strong>&lt;/td&gt;</strong><br />
<strong>&lt;td&gt;</strong><em>Line 1, cell 2</em><strong>&lt;/td&gt;</strong><br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;!&#8211; add colspan=&#034;2&#034; in the td tag. &#8211;&gt;<br />
&lt;td <strong>colspan=&#034;2&#034;</strong>&gt;<em>Line 2, cell 1</em><strong>&lt;/td&gt;</strong><br />
&lt;/tr&gt;<br />
&lt;/table&gt; </code>It will display: (once again, I added the border attribute)</p>
<table border="1">
<tr>
<td>Line 1, cell 1</td>
<td>Line 1, cell 2</td>
</tr>
<tr>
<td colspan="2">Line 2, cell 1</td>
</tr>
</table>
<p>You can always change the <strong>colspan</strong> value by the number of columns you need to merge. In fact, it&#039;s pretty simple neh? Well, that was for columns, let&#039;s see how it works for rows now.</p>
<p><code> &lt;table&gt;<br />
<strong>&lt;tr&gt;</strong><br />
&lt;!&#8211; add rowspan=&#034;2&#034; in the td tag. &#8211;&gt;<br />
&lt;td <strong>rowspan=&#034;2&#034;</strong>&gt;<em>Column 1, line 1 and 2</em>&lt;/td&gt;<br />
&lt;td&gt;<strong>Column 2, line 1</strong>&lt;/td&gt;<br />
<strong>&lt;/tr&gt;</strong><br />
<strong>&lt;tr&gt;</strong><br />
&lt;td&gt;<strong>Column 2, line 2</strong>&lt;/td&gt;<br />
<strong>&lt;/tr&gt;</strong><br />
&lt;/table&gt;</code>It will display: (I added the border attribute)</p>
<table border="1">
<tr>
<td rowspan="2">Column 1, line 1 and 2</td>
<td>Column 2, line 1</td>
</tr>
<tr>
<td>Column 2, line 2</td>
</tr>
</table>
<p>As for the columns, you will have to change the <strong>rowspan</strong> value by the number of rows you want to merge. Now, let&#039;s see some <samp>table</samp> attributes.</p>
<p><code> &lt;table <em>width=&#034;<strong>200</strong>&#034; cellpadding=&#034;<strong>0</strong>&#034; cellspacing=&#034;<strong>0</strong>&#034; border=&#034;<strong>1</strong>&#034;</em>&gt;<br />
&lt;!&#8211; tr, td tags here &#8211;&gt;<br />
&lt;/table&gt; </code></p>
<ul>
<li><strong>width</strong> can be in pixels (so you just put a number) or in %, but you will need to add % after the number.</li>
<li><strong>cellpadding</strong> is the space between the cell&#039;s border and the text. (pixels or %)</li>
<li><strong>cellspacing</strong> is the space between cells. (pixels or %)</li>
<li><strong>border</strong> is the size or the table&#039;s border. (pixels) I recommend you to use <samp>border=&#034;0&#034;</samp>, it&#039;s nicer.</li>
</ul>
<p><code> &lt;table <em>align=&#034;<strong>center</strong>&#034; bgcolor=&#034;<strong>#FFFFFF</strong>&#034; dir=&#034;<strong>ltr</strong>&#034;</em>&gt;<br />
&lt;!&#8211; tr, td tags here &#8211;&gt;<br />
&lt;/table&gt; </code></p>
<ul>
<li><strong>align</strong> is the table alignment. It can be <samp>center</samp>, <samp>left</samp> or <samp>right</samp>.</li>
<li><strong>bgcolor</strong> is the table background color. You may use hex color codes.</li>
<li><strong>dir</strong> is the text direction. It can be <samp>ltr</samp> (left to right) or <samp>rtl</samp> (right to left).</li>
</ul>
<p class="akst_link"><a href="http://pootato.org/?p=13&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_13" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/tables/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Metatags</title>
		<link>http://pootato.org/tutorials/html/metatags/</link>
		<comments>http://pootato.org/tutorials/html/metatags/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 19:15:32 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/website/metatags/</guid>
		<description><![CDATA[Metatags are used by search engines like Google or Yahoo to index your website. They belong to the head part of your document.
 &#60;meta name="keywords&#034; content=&#034;key, words&#034; /&#62;
&#60;meta name=&#034;description&#034; content=&#034;Your site description&#034; /&#62;
&#60;meta name=&#034;author&#034; content=&#034;name&#034; /&#62;
&#60;meta name=&#034;copyright&#034; content=&#034;name and date&#034; /&#62; There are a lot more so I suggest you to search for metatags generators.
Other [...]]]></description>
			<content:encoded><![CDATA[<p>Metatags are used by search engines like <a href="http://google.com/">Google</a> or <a href="http://yahoo.com/">Yahoo</a> to index your website. They belong to the <samp>head</samp> part of your document.</p>
<p><code> &lt;meta name="<em>keywords</em>&#034; content=&#034;<strong>key</strong><em>,</em> <strong>words</strong>&#034; /&gt;<br />
&lt;meta name=&#034;<em>description</em>&#034; content=&#034;<strong>Your site description</strong>&#034; /&gt;<br />
&lt;meta name=&#034;<em>author</em>&#034; content=&#034;<strong>name</strong>&#034; /&gt;<br />
&lt;meta name=&#034;<em>copyright</em>&#034; content=&#034;<strong>name and date</strong>&#034; /&gt; </code>There are a lot more so I suggest you to search for metatags generators.</p>
<h2>Other functions</h2>
<p>They can also be used to hide IE6+ annoying image toolbar (if the user hasn&#039;t disabled it).</p>
<p><code> &lt;meta http-equiv="<em>imagetoolbar</em>&#034; content=&#034;<strong>false</strong>&#034; /&gt; </code>Also, it can be used to refresh your page after <strong>x</strong> seconds.</p>
<p><code> &lt;meta http-equiv="<em>refresh</em>&#034; content=&#034;<strong>seconds</strong>&#034; /&gt; </code>And finally, it can redirect the user to an other URL but some people find this annoying because if they&#039;re redirected and click the button &#034;back&#034;, it&#039;s always refreshed so they can&#039;t go back anymore.</p>
<p><code> &lt;meta http-equiv="<em>refresh</em>&#034; content=&#034;<strong>x</strong>;URL=<strong>new url</strong>&#034; /&gt; </code></p>
<p class="akst_link"><a href="http://pootato.org/?p=12&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_12" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/metatags/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Lists</title>
		<link>http://pootato.org/tutorials/html/lists/</link>
		<comments>http://pootato.org/tutorials/html/lists/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 19:14:00 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/website/lists/</guid>
		<description><![CDATA[Lists are used for many things, such as menus, css drop down, etc. but in this page, I will only list the basic usage of lists. Each time, put the new item between the li element.
 &#60;ul&#62;
&#60;li&#62;Item 1&#60;/li&#62;
&#60;li&#62;Item 2&#60;/li&#62;
&#60;li&#62;Item 3&#60;/li&#62;
&#60;li&#62;Item 4&#60;/li&#62;
&#60;/ul&#62; It shows:

Item 1
Item 2
Item 3
Item 4

ul means Unordered List so it uses bullets.
 &#60;ol&#62;
&#60;li&#62;Item [...]]]></description>
			<content:encoded><![CDATA[<p>Lists are used for many things, such as menus, css drop down, etc. but in this page, I will only list the basic usage of lists. Each time, put the new item between the <samp>li</samp> element.</p>
<p><code> &lt;<em>ul</em>&gt;<br />
&lt;li&gt;<strong>Item 1</strong>&lt;/li&gt;<br />
&lt;li&gt;<strong>Item 2</strong>&lt;/li&gt;<br />
&lt;li&gt;<strong>Item 3</strong>&lt;/li&gt;<br />
&lt;li&gt;<strong>Item 4</strong>&lt;/li&gt;<br />
&lt;/<em>ul</em>&gt; </code>It shows:</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
</ul>
<p><samp>ul</samp> means Unordered List so it uses bullets.</p>
<p><code> &lt;<em>ol</em>&gt;<br />
&lt;li&gt;<strong>Item one</strong>&lt;/li&gt;<br />
&lt;li&gt;<strong>Item two</strong>&lt;/li&gt;<br />
&lt;li&gt;<strong>Item three</strong>&lt;/li&gt;<br />
&lt;li&gt;<strong>Item four</strong>&lt;/li&gt;<br />
&lt;/<em>ol</em>&gt; </code></p>
<ol>
<li>Item one</li>
<li>Item two</li>
<li>Item three</li>
<li>Item four</li>
</ol>
<p>As you probably guessed, <samp>ol</samp> means Ordered List, thus it uses number.</p>
<h2>Customize!</h2>
<p>You can easily customize your lists using CSS! For example, change the bullets for Unordered Lists, example of stylesheet:</p>
<p><code><em>ul</em> { list-style: <strong>circle</strong>; }</code><samp>circle</samp> can be replaced by <samp>square</samp> and the default one is <samp>disc</samp>. You can also use images:</p>
<p><code><em>ul</em> { list-style: url(<strong>bullet.gif</strong>); }</code>As for Ordered Lists, if regular numbers aren&#039;t cool enough for you, you can use roman numbers or alphabet letters:</p>
<p><code><em>ol</em> { list-style: <strong>lower-roman</strong>; }</code><samp>lower-roman</samp> can be replaced by <samp>upper-roman</samp>, <samp>lower-alpha</samp>, <samp>upper-alpha</samp> and the default is <samp>decimal</samp>.</p>
<ol style="list-style-type: lower-alpha; list-style-image: none; list-style-position: outside">
<li>Using</li>
<li>lower</li>
<li>alpha</li>
</ol>
<p class="akst_link"><a href="http://pootato.org/?p=11&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_11" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/lists/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Anchors</title>
		<link>http://pootato.org/tutorials/html/anchors/</link>
		<comments>http://pootato.org/tutorials/html/anchors/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 19:11:52 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/website/anchors/</guid>
		<description><![CDATA[Anchors are used to mark a special part of your page. For example, if your page is very long, you can divide it into 2 or more parts. Add an anchor where you want to mark the beginning of one part and then, add a link to this anchor.
To add an anchor:
 &#60;a name="anchor_name&#034;&#62;&#60;/a&#62; Then, [...]]]></description>
			<content:encoded><![CDATA[<p>Anchors are used to mark a special part of your page. For example, if your page is very long, you can divide it into 2 or more parts. Add an anchor where you want to mark the beginning of one part and then, add a link to this anchor.</p>
<p>To add an anchor:</p>
<p><code> &lt;a name="<strong>anchor_name</strong>&#034;&gt;&lt;/a&gt; </code>Then, to link to this anchor, add:</p>
<p><code> &lt;a href="<em>#</em><strong>anchor_name</strong>&#034;&gt;<em>Go to second part?</em>&lt;/a&gt; </code>As you can see, you must add <samp>#</samp> before the anchor&#039;s name in the link. If the anchor isn&#039;t in the current page, you can also write <samp>otherpage.htm#anchor</samp>.</p>
<p>Back to top? You can do that easily, just make a link to <samp>#</samp> alone.</p>
<p class="akst_link"><a href="http://pootato.org/?p=10&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_10" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/anchors/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
