<?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>XHTML help, using XHTML and CSS &#187; HTML help</title>
	<atom:link href="http://www.xhtmltips.co.uk/category/html-help/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xhtmltips.co.uk</link>
	<description>... coding abc ... well formed and valid XML with CSS</description>
	<lastBuildDate>Wed, 25 Feb 2009 15:32:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CSS Tip: CSS Equivalent to CELLSPACING=0</title>
		<link>http://www.xhtmltips.co.uk/2008/02/20/css-tip-css-equivalent-to-cellspacing0/</link>
		<comments>http://www.xhtmltips.co.uk/2008/02/20/css-tip-css-equivalent-to-cellspacing0/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 14:10:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2008/02/20/css-tip-css-equivalent-to-cellspacing0/</guid>
		<description><![CDATA[When using the TABLE tag, there are two attributes that are commonly added; cellspacing and cellpadding. For padding, there is an obvious match with the CSS definition padding. Indeed the attribute for padding-top, padding-bottom, padding-left and padding-right all behave as expected. However there is no directly corresponding property for cellspacing. One might assume that the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2008/02/table.jpg" title="table.jpg" alt="table.jpg" align="right" />When using the TABLE tag, there are two attributes that are commonly added; <em>cellspacing </em>and <em>cellpadding</em>. For padding, there is an obvious match with the CSS definition <em>padding.</em> Indeed the attribute for <em>padding-top, padding-bottom, padding-left </em>and <em>padding-right</em>  all behave as expected. However there is no directly corresponding property for <em>cellspacing</em>. One might assume that the <em>margin </em>property would provide the same functionality and layout control, but it does not apply to table cells.</p>
<p><span id="more-38"></span></p>
<p>It may be tempting to simply include the <em>cellpadding</em> attribute within the table, though there is a CSS equivalent that can be used :-<br />
<code><br />
border-spacing: 3px;<br />
</code></p>
<p>This allows the spacing between cells to be controlled the same as would be possible with <em>cellspacing</em> but with a CSS only solution.</p>
<p>One of the commonest reasons for using <em>cellspacing</em> is to remove any spacing at all from table cells, with <em>cellspacing=0</em>. Historically this has been when tables are used for layout purposes. Whilst this is no longer advisable for layout, there are times when tabular data can benefit for zero spacing. With CSS this can be accomplished as follows :</p>
<p><code> border-spacing: 3px;<br />
border-collapse: collapse;</code></p>
<p>The full affect of <em>table cellspacing</em> with a CSS only solution.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2008%2F02%2F20%2Fcss-tip-css-equivalent-to-cellspacing0%2F&amp;title=CSS+Tip%3A+CSS+Equivalent+to+CELLSPACING%3D0', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2008/02/20/css-tip-css-equivalent-to-cellspacing0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS background for my space pages</title>
		<link>http://www.xhtmltips.co.uk/2007/06/14/css-background-for-myspacecom-pages/</link>
		<comments>http://www.xhtmltips.co.uk/2007/06/14/css-background-for-myspacecom-pages/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 20:25:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/06/14/css-background-for-myspacecom-pages/</guid>
		<description><![CDATA[A quick and effective way to enhance and personalise a webpage, or section (body, div, table) is to add an image background. This can also add greater depth than a flat colour. For this example let us look at how to add a background image to a myspace page; http://www.myspace.com/digify Myspace allow users to add [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2007/06/digify_myspace_background.jpg" title="Digify Myspace background" alt="Digify Myspace background" align="left" />A quick and effective way to enhance and personalise a webpage, or section (body, div, table) is to add an image background. This can also add greater depth than a flat colour. For this example let us look at how to add a background image to a myspace page; <a href="http://www.myspace.com/digify" title="Myspace background example" target="_blank">http://www.myspace.com/digify</a></p>
<p><span id="more-26"></span></p>
<p>Myspace allow users to add CSS codes to the content areas on their pages. By inserting the &lt;style&gt; &lt;/style&gt; tags in one of the text boxes, typically &#8216;About me&#8217; it is possible to change the appearance of many of the page&#8217;s attributes. Most of the standard CSS definitions are permitted, but it should be noted that changes to attributes such as z-index are not allowed. Likewise CSS codes which attempt to obscure or remove advertising will be blocked, or be in breach of myspace&#8217;s terms and conditions.</p>
<p>There are many aspects that can be &#8216;<em>pimped</em>&#8216; to make your pages look cool. If you have any specific requests of &#8216;<em>How do I &#8230;</em>&#8216; for improving your myspace (or other social networking) pages, please feel free to comment or email <a href="mailto:myspace_help@xhtmltips.co.uk" target="_blank">myspace_help@xhtmltips.co.uk</a>, and we will suggest some solutions and post additional &#8216;<em>How to &#8230;</em>&#8216; articles.</p>
<p>The basic CSS code to add a background image is :</p>
<p><code>background-image: url('http://www.xhtmltips.co.uk/myspace/purple_wave_800.jpg');<br />
</code><br />
This will load a purple gradient background. The location of the image file is added by using the <code>url('');</code> function, which can be a local file, or a complete URI.</p>
<p>By default a background image will be added to the top left of the area and will &#8216;<em>tile</em>&#8216; both horizontally and vertically. It is possible through two additional CSS codes to change this setting to achieve other varied effects;</p>
<p><code>background-position:<br />
background-repeat: </code></p>
<p>For example; if the gradient image started with a solid colour on the left hand side and faded to white we might only want it to be tiled vertically, and leave the right hand side as the defined background colour of white.</p>
<p><code>background-repeat: repeat-y;</code></p>
<p>For a background image which has a colour on the right hand side and fades to white on the left hand side, the two codes can be used together like so :</p>
<p><code>background-repeat: repeat-y;<br />
background-position: right center;</code></p>
<p>With these codes we can now modify our <a href="http://www.myspace.com/digify">myspace background</a> which will be a central purple gradient, with tiling both vertically and horizontally. The myspace CSS code for this is as follows :</p>
<p><code>&lt;style type="text/css"&gt;<br />
* {background:transparent; border:0px;}</code></p>
<p><code>body {<br />
background-image: url('http://www.xhtmltips.co.uk/myspace/purple_wave_800.jpg');<br />
background-position: center;<br />
}<br />
&lt;/style&gt;</code></p>
<p>Whilst this does the job of adding a tiling background, it does have the unfortunate consequence of making some of the text illegible, where white or light text is shown on a white or light background.</p>
<p>Fortunately with a few more nifty myspace specific CSS codes this can be solved :</p>
<p><code>&lt;style type="text/css"&gt;<br />
body.bodycontent table tr td {<br />
background:transparent; border:0px;<br />
color: black !important;<br />
}</code></p>
<p><code>table.navigationBar * {<br />
background: SteelBlue ;<br />
}</code></p>
<p><code>table.contactTable * {<br />
background: CornflowerBlue;<br />
}</code></p>
<p><code>body {<br />
background-image: url('http://www.xhtmltips.co.uk/myspace/purple_wave_800.jpg');<br />
background-position: center;<br />
}&lt;/style&gt;</code></p>
<p>If you copy the above codes including the &#8216;&lt;style&gt;&#8217; and &#8216;&lt;/style&gt;&#8217; tags into one of your myspace content areas, such as the  &#8216;About me&#8217; box, you should be able to see the change to your myspace page appearance.</p>
<p>View the <a href="http://www.myspace.com/digify">myspace background</a> example for the see the finished effect.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F06%2F14%2Fcss-background-for-myspacecom-pages%2F&amp;title=CSS+background+for+my+space+pages', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/06/14/css-background-for-myspacecom-pages/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>XHTML help: basics &#8211; tables, tr, td, th</title>
		<link>http://www.xhtmltips.co.uk/2007/05/30/xhtml-help-basics-tables-tr-td-th/</link>
		<comments>http://www.xhtmltips.co.uk/2007/05/30/xhtml-help-basics-tables-tr-td-th/#comments</comments>
		<pubDate>Wed, 30 May 2007 14:17:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/05/30/xhtml-help-basics-tables-tr-td-th/</guid>
		<description><![CDATA[Sooner or later you will need to create a table of some sort. There are lots of options for displaying tabular data in XHTML so first lets look at basic HTML tables. A table is made up of several basic markup tags which provide a structured hierarchy to your data : Element Description table The [...]]]></description>
			<content:encoded><![CDATA[<p>Sooner or later you will need to create a table of some sort. There are lots of options for displaying tabular data in XHTML so first lets look at basic HTML tables.<br />
<span id="more-25"></span><br />
A table is made up of several basic markup tags which provide a structured hierarchy to your data :</p>
<table>
<tr>
<th>Element</th>
<th align="left">Description</th>
</tr>
<tr>
<td>table</td>
<td>The main element that contains all the other table related elements.</td>
</tr>
<tr>
<td>tr</td>
<td>Creates a row in the table</td>
</tr>
<tr>
<td>td</td>
<td>Creates a cell in a row</td>
</tr>
<tr>
<td>th</td>
<td>Creates a table header in a row</td>
</tr>
</table>
<p>Here is an example of the basic markup for some search engine results:</p>
<p>&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;th&gt;Relevance&lt;/th&gt;<br />
&lt;th&gt;Website&lt;/th&gt;<br />
&lt;th&gt;URL&lt;/th&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;100%&lt;/td&gt;<br />
&lt;td&gt;XHTML Tips&lt;/td&gt;<br />
&lt;td&gt;&lt;a href=&#8221;http://www.xhtmltips.co.uk/&#8221;&gt;HTML Help&lt;/a&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;75%&lt;/td&gt;<br />
&lt;td&gt;eLiteracy&lt;/td&gt;<br />
&lt;td&gt;&lt;a href=&#8221;http://www.eliteracy.co.uk/&#8221;&gt;Internet Safety&lt;/a&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;</p>
<p>As you can see there is one row of headers and two rows of data. It is possible to omit the row of headers using a row of regular cells instead but there is a downside to doing so. When someone with a screen reader, or alternate browser views a table that does not have headers the data becomes very confusing.</p>
<p>For example, the data above would be read sequentially like so &#8220;Relevance Website URL 100% XHTML Tips HTML Help 75% eLiteracy Internet Safety&#8221;.</p>
<p>By using headers it can be logically read as &#8220;Relevance: 100% Website: XHTML Tips URL: HTML Help Relevance: 75% Website: eLiteracy URL: Internet Safety&#8221;. Table headers provide additional structure to the data and allow interpretation to be done which improves accessibility.</p>
<p>For info the sample table will look like this :</p>
<table>
<tr>
<th>Relevance</th>
<th>Website</th>
<th>URL</th>
</tr>
<tr>
<td>100%</td>
<td>XHTML Tips</td>
<td><a href="/" title="html help">HTML Help</a></td>
</tr>
<tr>
<td>75%</td>
<td>eLiteracy</td>
<td><a href="http://www.eliteracy.co.uk/" title="Internet safety" target="_blank">Internet Safety</a></td>
</tr>
</table>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F05%2F30%2Fxhtml-help-basics-tables-tr-td-th%2F&amp;title=XHTML+help%3A+basics+%26%238211%3B+tables%2C+tr%2C+td%2C+th', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/05/30/xhtml-help-basics-tables-tr-td-th/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stop spam: Don&#8217;t use mailto links!</title>
		<link>http://www.xhtmltips.co.uk/2007/05/08/stop-spam-dont-use-mailto-links/</link>
		<comments>http://www.xhtmltips.co.uk/2007/05/08/stop-spam-dont-use-mailto-links/#comments</comments>
		<pubDate>Tue, 08 May 2007 15:57:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/05/08/stop-spam-dont-use-mailto-links/</guid>
		<description><![CDATA[How can you add an email address link (mailto:) to a webpage but also reduce the risk of that email address being harvested by spammers? An ideal method would be to use one of the many alternative contact form solutions available. If use of these options is not possible and it is important to display [...]]]></description>
			<content:encoded><![CDATA[<p>How can you add an email address link (mailto:) to a webpage but also reduce the risk of that email address being harvested by spammers?</p>
<p><span id="more-24"></span><br />
An ideal method would be to use one of the many alternative contact form solutions available. If use of these options is not possible and it is important to display an email address with a mailto: link on a webpage, this tip will help obscure the email address from spam harvesters, whilst allowing the form to work normally.</p>
<p>help_NO_SPAM@xhtmltips.co.uk</p>
<p>Most solutions to publishing email addresses involve changing the address to something that is only humanly readable. For example:</p>
<p>help at xhtmltips dot co dot uk</p>
<p>Whilst it is possible to read this, and understand what the address might be, it does not provide a clickable link.</p>
<p>Most harvesting scripts are scanning for the essential email &#8216;at-symbol&#8217; @ anywhere within a document. This tip simply replaces that character with the entity reference &#8211; @. The result is a link the browser can understand, but that will not match an email address pattern.</p>
<p>When you click this link, it should launch your favourite email client, in order to send a message to the address <a href="mailto:help@htmltips.co.uk">help@htmltips.co.uk</a></p>
<p>NB: this is far from a safe way to protect your email address from spammers. The only effective way to do this, is to not publish the address on a public webpage. It does however offer a &#8216;halfway-house&#8217; solution which may help those using free <a href="http://www.webhostingsearch.com/" title="hosting solutions" target="_blank">website hosting solutions</a>.</p>
<p>This format of the address will work in most browsers :</p>
<p><code>&lt;a href="mailto:help</code>@<code>htmltips.co.uk"&gt;help</code>@<code>htmltips.co.uk&lt;/a&gt;</code></p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F05%2F08%2Fstop-spam-dont-use-mailto-links%2F&amp;title=Stop+spam%3A+Don%26%238217%3Bt+use+mailto+links%21', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/05/08/stop-spam-dont-use-mailto-links/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XHTML help: basics &#8211; images, the IMG tag</title>
		<link>http://www.xhtmltips.co.uk/2007/05/05/xhtml-help-basics-images-the-img-tag/</link>
		<comments>http://www.xhtmltips.co.uk/2007/05/05/xhtml-help-basics-images-the-img-tag/#comments</comments>
		<pubDate>Sat, 05 May 2007 08:43:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/05/05/xhtml-help-basics-images-the-img-tag/</guid>
		<description><![CDATA[Every website looks a lot better with pictures. To get some great images on your page youâ€™ll just need one simple line: &#60;img src="http://www.xhtmltips.co.uk/site/html_help_link.gif" /&#62; And thatâ€™s really it. Of course there are a few more attributes that you may want to add, especially the alt attribute. The alt attribute provides alternate text, typically used [...]]]></description>
			<content:encoded><![CDATA[<p>Every website looks a lot better with pictures. To get some great images on your page youâ€™ll just need one simple line:</p>
<p><code>&lt;img src="http://www.xhtmltips.co.uk/site/html_help_link.gif" /&gt;</code></p>
<p><span id="more-23"></span><br />
And thatâ€™s really it. Of course there are a few more attributes that you may want to add, especially the alt attribute. The alt attribute provides alternate text, typically used for accessibility and users with alternative devices, who are using a text browser. â€œAlt-textâ€ can also be indexed by search engines.</p>
<p>A very important rule to remember about alt-text is that it should be descriptive of the image. This is a bad example:</p>
<p><code>&lt;img src="http://www.xhtmltips.co.uk/site/html_help_link.gif"<br />
alt="html_help_link.gif" /&gt;</code></p>
<p>By describing your image with the file name you are not providing any additional or useful information. Something better would be:</p>
<p><code>&lt;img src="http://www.xhtmltips.co.uk/site/html_help_link.gif"<br />
alt="HTML help, animated link into site xhtmltips.co.uk" /&gt;</code></p>
<p>The same is true of the title attribute, which can be used as a descriptive label for your image, and may be displayed when the image is linked to:</p>
<p><code>&lt;img src="http://www.xhtmltips.co.uk/site/html_help_link.gif"<br />
title="XHTML help." /&gt;</code></p>
<p>You can also specify the width and height of your image by using the width and height attributes. The values can be either in percents, using the % symbol, or in pixels:</p>
<p><code>&lt;img src="http://www.xhtmltips.co.uk/site/html_help_link.gif"<br />
width="50%" height="50%" /&gt;</code></p>
<p><code>&lt;img src="http://www.xhtmltips.co.uk/site/html_help_link.gif"<br />
width="120" height="60" /&gt;</code></p>
<p>If the % symbol is not used the image will be sized in pixels. Height and width values should be the placement size the image is to occupy on the page. This can help the browser render pages quicker.</p>
<p>So the finished image will look like this :</p>
<p><img src="http://www.xhtmltips.co.uk/site/html_help_link.gif" alt="HTML help, animated link into site xhtmltips.co.uk" title="XHTML help." height="60" width="120" /></p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F05%2F05%2Fxhtml-help-basics-images-the-img-tag%2F&amp;title=XHTML+help%3A+basics+%26%238211%3B+images%2C+the+IMG+tag', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/05/05/xhtml-help-basics-images-the-img-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML help: basics &#8211; unordered list, ordered list, definition list</title>
		<link>http://www.xhtmltips.co.uk/2007/05/01/xhtml-help-basics-unordered-list-ordered-list-definition-list/</link>
		<comments>http://www.xhtmltips.co.uk/2007/05/01/xhtml-help-basics-unordered-list-ordered-list-definition-list/#comments</comments>
		<pubDate>Tue, 01 May 2007 12:18:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/05/01/xhtml-help-basics-unordered-list-ordered-list-definition-list/</guid>
		<description><![CDATA[In HTML there are several different types of lists. Mostly commonly youâ€™ll use an unordered list. There are two other types of lists that you could use as well: the ordered list and the definition list. Of course an ordered list can be used for items with priorities, or to show a specific order of [...]]]></description>
			<content:encoded><![CDATA[<p>In HTML there are several different types of lists. Mostly commonly youâ€™ll use an unordered list. There are two other types of lists that you could use as well: the ordered list and the definition list. Of course an ordered list can be used for items with priorities, or to show a specific order of the items. Both the unordered and ordered lists use similar markup:</p>
<p><span id="more-22"></span><br />
<code>&lt;ul&gt;<br />
&lt;li&gt;List item #1&lt;/li&gt;<br />
&lt;li&gt;List item #2&lt;/li&gt;<br />
&lt;/ul&gt;</code></p>
<p><code>&lt;ol&gt;<br />
&lt;li&gt;List item #1&lt;/li&gt;<br />
&lt;li&gt;List item #2&lt;/li&gt;<br />
&lt;/ol&gt;</code></p>
<p>You can see the only difference is that the unordered list uses the ul element and the unordered list uses the ol element.</p>
<p>An unordered list appears like this :</p>
<ul>
<li>List item #1</li>
<li>List item #2</li>
</ul>
<p>Whilst an ordered list appears like this :</p>
<ol>
<li>List item #1</li>
<li>List item #2</li>
</ol>
<p>A definition list is a special list that is intended for a list of terms and definitions. It can also be used for items that have a direct relationship with one another such as the make and model of a car.</p>
<p><code>&lt;dl&gt;<br />
&lt;dt&gt;Toyota&lt;/dt&gt;<br />
&lt;dd&gt;Celica&lt;/dd&gt;<br />
&lt;dt&gt;BMW&lt;/dt&gt;<br />
&lt;dd&gt;Z4&lt;/dd&gt;<br />
&lt;/dl&gt;</code></p>
<p>Use the dl element to start a definition list. A dt element is a definition term and you can have as many of them as you need; they donâ€™t necessarily have to have a corresponding definition description, or dd tag. You can also have as many definition descriptions as youâ€™d like for each given term.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F05%2F01%2Fxhtml-help-basics-unordered-list-ordered-list-definition-list%2F&amp;title=XHTML+help%3A+basics+%26%238211%3B+unordered+list%2C+ordered+list%2C+definition+list', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/05/01/xhtml-help-basics-unordered-list-ordered-list-definition-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML help &#8211; DIV or SPAN? DIV vs SPAN.</title>
		<link>http://www.xhtmltips.co.uk/2007/04/19/xhtml-basics-div-or-span-div-vs-span/</link>
		<comments>http://www.xhtmltips.co.uk/2007/04/19/xhtml-basics-div-or-span-div-vs-span/#comments</comments>
		<pubDate>Thu, 19 Apr 2007 12:58:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/04/19/xhtml-basics-div-or-span-div-vs-span/</guid>
		<description><![CDATA[These two tags are often used inter-changeably by developers for different reasons, so what are the differences between them? How should they be used to markup web pages? The basic difference between the two is their default behaviour. DIV tags are block-level tags and can be used as containers for other tags. SPAN tags are [...]]]></description>
			<content:encoded><![CDATA[<p>These two tags are often used inter-changeably by developers for different reasons, so what are the differences between them? How should they be used to markup web pages?<br />
<span id="more-21"></span></p>
<p>The basic difference between the two is their default behaviour. <code>DIV </code>tags are block-level tags and can be used as containers for other tags. <code>SPAN </code>tags are inline tags and should only contain content. These default behaviours can of course be altered by CSS definitions, but are default in any browser context.</p>
<p>As a reference, if you want to align text within these tags use the following CSS attributes;</p>
<p><code>DIV - text-align: left|right|center|justify<br />
SPAN - float: left|right<br />
</code><br />
<code>DIV </code>tags are also used to define logical divisions of page content. It also allows CSS to be defined for whole sections of HTML. By applying an id to a <code>DIV </code>you can also add controls using JavaScript.</p>
<p>A <code>SPAN </code>tag is not intended to container other tags, but rather to allow localised styling. This is especially useful when combined with classes. It has even been suggested that future semantic web models will use such markup to define relevant content.</p>
<p>For example by defining a class telephone, it is possible ensure all telephone numbers are displayed in the same fashion:</p>
<p><code>&lt;span class="telephone"&gt;44-20-555-4444&lt;/span&gt;</code></p>
<p><code>SPAN </code>tags have similar properties but should be used to reference inline content and apply style by classes.</p>
<p>In summary: use <code>DIV</code>s for defining sections of a page, and <code>SPAN</code>s to enclose and style text or classes of text.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F04%2F19%2Fxhtml-basics-div-or-span-div-vs-span%2F&amp;title=XHTML+help+%26%238211%3B+DIV+or+SPAN%3F+DIV+vs+SPAN.', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/04/19/xhtml-basics-div-or-span-div-vs-span/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Section titles &#8211; CSS text alignment</title>
		<link>http://www.xhtmltips.co.uk/2007/04/03/section-titles-css-text-alignment/</link>
		<comments>http://www.xhtmltips.co.uk/2007/04/03/section-titles-css-text-alignment/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 14:02:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/04/03/section-titles-css-text-alignment/</guid>
		<description><![CDATA[Often a designer will wish to have a section or paragraph title bar which contains two separate pieces of text displayed on one line. This may be a text title on the left and a date or time stamp on the right. This can be accomplished very cleanly with a few CSS attributes applied to [...]]]></description>
			<content:encoded><![CDATA[<p>Often a designer will wish to have a section or paragraph title bar which contains two separate pieces of text displayed on one line. This may be a text title on the left and a date or time stamp on the right.</p>
<p>This can be accomplished very cleanly with a few CSS attributes applied to the following HTML :-</p>
<p><span id="more-19"></span><br />
<!-- adman --></p>
<p><code>&lt;h1&gt;&lt;em&gt;Section: HTML help&lt;/em&gt; Date: 21st Apr &lt;/h1&gt;</code></p>
<p><code>h1 { text-align: right; }</code>h1 em { float: left; }</p>
<p>By using this simple approach it means that the content will still be displayed in the order it was intended to be viewed, even if CSS is not available or rendered correctly in the visitor&#8217;s browser. This approach also avoids the temptation to use tables or even floating div tags. By using the h1 (or h2, h3, et al) tag, the semantic nature of the content is preserved.</p>
<p>In a browser without CSS rendering the result will look something like this :-</p>
<p><em><code>Section: HTML help </code></em><em> Date: 21st Apr</em></p>
<p>This result at least shows the content in the textual context that was intended. Although the design effect is lost the content remains intact. Aspects like this are key to making a web page as accessible as possible to all audiences.</p>
<p>Now, if we break a rule here and add that CSS style, inline with the tags, you can see the result here :-</p>
<pre></pre>
<h1 style="text-align: right"><em style="float: left">Section: HTML help</em> Date: 21st Apr</h1>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F04%2F03%2Fsection-titles-css-text-alignment%2F&amp;title=Section+titles+%26%238211%3B+CSS+text+alignment', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/04/03/section-titles-css-text-alignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML help: basics &#8211; essential tags (p em strong)</title>
		<link>http://www.xhtmltips.co.uk/2007/04/02/xhtml-basics-essential-tags-p-em-strong/</link>
		<comments>http://www.xhtmltips.co.uk/2007/04/02/xhtml-basics-essential-tags-p-em-strong/#comments</comments>
		<pubDate>Mon, 02 Apr 2007 12:41:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/04/02/xhtml-basics-essential-tags-p-em-strong/</guid>
		<description><![CDATA[Thereâ€™s pretty much one element you absolutely canâ€™t live without when marking up your pages. Itâ€™s the paragraph element. Youâ€™ll use this tag to mark, you guessed it, paragraphs. Hereâ€™s how: &#60;p&#62;This is my paragraph that isnâ€™t much of a paragraph. Arenâ€™t paragraphs 3-4 sentences long?&#60;/p&#62; Of course youâ€™ll typically want to express yourself a [...]]]></description>
			<content:encoded><![CDATA[<p>Thereâ€™s pretty much one element you absolutely canâ€™t live without when marking up your pages. Itâ€™s the paragraph element. Youâ€™ll use this tag to mark, you guessed it, paragraphs. Hereâ€™s how:<br />
<code></code></p>
<p><code>&lt;p&gt;This is my paragraph that isnâ€™t much of a paragraph. Arenâ€™t paragraphs 3-4 sentences long?&lt;/p&gt;</code></p>
<p><span id="more-18"></span>Of course youâ€™ll typically want to express yourself a little more when writing a paragraph by emphasizing text or by making it strong. The tags you use here are equally obvious, thatâ€™s right the em and strong tags.</p>
<p>To add emphasis to your words wrap them up in an em tag like this:</p>
<p><code>&lt;p&gt;This is my paragraph that &lt;em&gt;isnâ€™t much of a paragraph&lt;/em&gt;. Arenâ€™t paragraphs 3-4 sentences long?&lt;/p&gt;</code></p>
<p>And to add a little power to a word give it a strong tag:</p>
<p><code>&lt;p&gt;This is &lt;strong&gt;my&lt;/strong&gt; paragraph that isnâ€™t much of a paragraph. Arenâ€™t paragraphs 3-4 sentences long?&lt;/p&gt;</code></p>
<p>Iâ€™m sure youâ€™ve heard of the bold and italic equivalents of these elements, b and i. These tags are valid but you shouldnâ€™t use them because they express how something should be presented. Itâ€™s best to just use XHTML for structural purposes and let CSS decide what to make bold and italic.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F04%2F02%2Fxhtml-basics-essential-tags-p-em-strong%2F&amp;title=XHTML+help%3A+basics+%26%238211%3B+essential+tags+%28p+em+strong%29', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/04/02/xhtml-basics-essential-tags-p-em-strong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>12 Ways to Make Your Web Pages Better</title>
		<link>http://www.xhtmltips.co.uk/2007/03/22/12-ways-to-make-your-web-pages-better/</link>
		<comments>http://www.xhtmltips.co.uk/2007/03/22/12-ways-to-make-your-web-pages-better/#comments</comments>
		<pubDate>Thu, 22 Mar 2007 13:26:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/?p=16</guid>
		<description><![CDATA[Due to the nature of the Internet, people may be viewing your web page with many different types of browsers such as a text-only browser, a voice browser, or a cell phone; they may be clicking through your site without a mouse, or keyboard, or they may be browsing hands-free. Some people may be accessing [...]]]></description>
			<content:encoded><![CDATA[<p>Due to the nature of the Internet, people may be viewing your web page with many different types of browsers such as a text-only browser, a voice browser, or a cell phone; they may be clicking through your site without a mouse, or keyboard, or they may be browsing hands-free. Some people may be accessing your website under less than ideal lighting situations or in very loud places. A good web developer will create their web sites in such a way that any of these browsers in any situation will be able to check out your site with ease.</p>
<p><span id="more-16"></span>Hereâ€™s a quick list of simple things that you can do to make your website more accessible:</p>
<ol>
<li>Non-text content (e.g. images) have descriptive <em>alt</em> or <em>longdesc</em> text</li>
<li>Donâ€™t rely on colour alone to get your point across</li>
<li>Mark up your documents properly; use a <em>p</em> element for paragraphs and a table element for tabular data</li>
<li>Use the <em>lang </em>attribute to specify what the language of your document is</li>
<li>Identify row and column headers in tables</li>
<li>Group rows and columns using the <em>thead</em>, <em>tfoot</em>, <em>tbody</em>, <em>col</em>, and <em>colgroup </em>elements</li>
<li>Organize your documents so they can be logically read without style sheets, in other words, put your content in order on the page</li>
<li>Make sure that your page is usable without Javascript or use  <em>noscript </em>element to indicate otherwise</li>
<li>Donâ€™t use blinking, moving, or scrolling object that canâ€™t be stopped</li>
<li>Use clear and simple language</li>
<li>Test your pages in multiple browsers with Javascript and images turned off. Donâ€™t forget to try text only!</li>
<li>Validate your pages using the W3C validators for CSS, HTML, and Accessibility</li>
</ol>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F03%2F22%2F12-ways-to-make-your-web-pages-better%2F&amp;title=12+Ways+to+Make+Your+Web+Pages+Better', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/03/22/12-ways-to-make-your-web-pages-better/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

