<?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>Jeepstone &#187; html</title>
	<atom:link href="http://www.jeepstone.co.uk/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeepstone.co.uk</link>
	<description>The home of Pete Jones</description>
	<lastBuildDate>Mon, 02 Aug 2010 11:12:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Click here if you don&#8217;t know what a link is</title>
		<link>http://www.jeepstone.co.uk/2009/12/23/click-here-if-you-dont-know-what-a-link-is/</link>
		<comments>http://www.jeepstone.co.uk/2009/12/23/click-here-if-you-dont-know-what-a-link-is/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 11:19:08 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://www.jeepstone.co.uk/?p=79</guid>
		<description><![CDATA[When the web was young and developers didn&#8217;t know better, everyone used the Click Here type link. You&#8217;d have pages where all of the links would be:
Click here to download our brand new software.
All of a sudden, the &#8216;Powers of Usability&#8217;, stated that links should link to what they are talking about, without becoming unusable. [...]]]></description>
			<content:encoded><![CDATA[<p>When the web was young and developers didn&#8217;t know better, everyone used the <a href="#">Click Here</a> type link. You&#8217;d have pages where all of the links would be:</p>
<blockquote><p><a href="#">Click here</a> to download our brand new software.</p></blockquote>
<p>All of a sudden, the &#8216;Powers of Usability&#8217;, stated that links should link to what they are talking about, without becoming unusable.<span id="more-79"></span> We&#8217;d start getting links like.</p>
<blockquote><p><a href="#">Download our brand new software</a>.</p></blockquote>
<p>Now this makes more sense to many developers, and Google loves it, but what about those people who don&#8217;t have a clue? Links can be styled in many ways: not underlined, overlined, pink, blue, black etc. Gone are the standards when all links were blue and underlined, and perhaps with the push to descriptive links, we&#8217;ve missed out a chunk of the audience that actually can&#8217;t tell what is a link.</p>
<h2>So what can we do?</h2>
<p>Well, Google often looks at links in your document, and pays the most attention to the first link (when all of the links point to the same place), which gives us something like:</p>
<blockquote><p><a href="#">Download our brand new software</a> by <a href="#">clicking here</a>.</p></blockquote>
<p>Is this more ugly? Possibly. Is it more hassle to maintain? Certainly. But is there a benefit to those users who still expect an obvious place to click? It would be interesting to see some stats on the above link as to which one more people actually clicked on. I would wager it&#8217;s the &#8216;click here&#8217;, rather than the &#8217;search engine&#8217; link.</p>
<p>What are your thoughts?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeepstone.co.uk/2009/12/23/click-here-if-you-dont-know-what-a-link-is/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Nested Ordered Lists</title>
		<link>http://www.jeepstone.co.uk/2008/12/10/css-nested-ordered-lists/</link>
		<comments>http://www.jeepstone.co.uk/2008/12/10/css-nested-ordered-lists/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 14:31:05 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[nested]]></category>
		<category><![CDATA[ordered list]]></category>

		<guid isPermaLink="false">http://www.jeepstone.co.uk/?p=28</guid>
		<description><![CDATA[It seems very silly that with all of the power of CSS and the push for semantic HTML, that the ordered list in HTML has fairly basic functionality, or rather, it&#8217;s missing something that is useful on most websites that are built these days.
Let&#8217;s take our standard Terms and Conditions. Normally this is broken down, [...]]]></description>
			<content:encoded><![CDATA[<p>It seems very silly that with all of the power of CSS and the push for semantic HTML, that the ordered list in HTML has fairly basic functionality, or rather, it&#8217;s missing something that is useful on most websites that are built these days.<span id="more-28"></span></p>
<p>Let&#8217;s take our standard Terms and Conditions. Normally this is broken down, contract-style, into Section 1 then Sub Section 1.4 etc. Now in HTML we represent this as:<code><br />
&lt;ol&gt;<br />
&lt;li&gt;Why are HTML Ordered lists rubbish?<br />
&lt;ol&gt;<br />
&lt;li&gt;Bad HTML<br />
&lt;ol&gt;<br />
&lt;li&gt;This could be badly nested HTML&lt;/li&gt;<br />
&lt;li&gt;or have other problems such as<br />
&lt;ol&gt;<br />
&lt;li&gt;poorly typed&lt;/li&gt;<br />
&lt;li&gt;cake in the keyboard&lt;/li&gt;<br />
&lt;li&gt;developer is drunk&lt;/li&gt;<br />
&lt;/ol&gt;<br />
&lt;/li&gt;<br />
&lt;li&gt;or maybe even just tiredness&lt;/li&gt;<br />
&lt;/ol&gt;<br />
&lt;/li&gt;<br />
&lt;/ol&gt;<br />
&lt;/li&gt;<br />
&lt;/ol&gt;</code></p>
<p>This is nice and proper HTML but the numerals are just single figures rather than being 1.3.2.</p>
<h2>CSS 2.1 to the rescue</h2>
<p>Thankfully there is a solution (for some browsers) in the form of CSS 2.1. In CSS 2.1, you can define <a href="http://www.w3.org/TR/CSS21/generate.html">counters</a>. These allow us to store the current level and populate it as we loop through the nested lists. With a bit of jiggery pokery, we can then output the number before the list item.</p>
<p><code><br />
ol {<br />
counter-reset: item;<br />
}<br />
ol li:before {<br />
content: counters(item, ".") ". ";<br />
counter-increment: item;<br />
}<br />
</code></p>
<p>Now when you render this in Firefox/Safari you get nicely numbered list items.</p>
<h2>Drawbacks</h2>
<p>There are some drawbacks. It appears that IE (how did we know that was coming?) breaks at the statement. This means that anything appearing after it will not work, so put it at the end of your stylesheet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeepstone.co.uk/2008/12/10/css-nested-ordered-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
