<?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>dev.joeblade.com</title>
	<atom:link href="http://dev.joeblade.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.joeblade.com</link>
	<description>Client side developer / designer / writer</description>
	<lastBuildDate>Sun, 21 Aug 2011 16:36:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Guardian iPad webapp: section customisation now easier</title>
		<link>http://dev.joeblade.com/2011/08/guardian-ipad-webapp-section-customisation-now-easier/</link>
		<comments>http://dev.joeblade.com/2011/08/guardian-ipad-webapp-section-customisation-now-easier/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 16:36:04 +0000</pubDate>
		<dc:creator>Paul Haine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.joeblade.com/?p=117</guid>
		<description><![CDATA[Because it was a bit of a faff having to type in tags when you wanted to add a section to the webapp, I've implemented a neater way of doing this.]]></description>
			<content:encoded><![CDATA[<p>Because it was a bit of a faff having to type in tags when you wanted to add a section to the webapp, I’ve implemented a neater way of doing this.</p>
<p>Every article will now list its tags on the right side, as shown in the screenshot below. For the Guardian nerds among you, I’m displaying tags of the type ‘blog’, ‘contributor’, ‘keyword’ and ‘series’.</p>
<p><img src="http://dev.joeblade.com/supporting/subs-off.png" alt="Default tag view" /></p>
<p>Tapping the subscribe button will expand to the view shown below:</p>
<p><img src="http://dev.joeblade.com/supporting/subs-on.png" alt="Subscription tag view" /></p>
<p>You can see above that this user is already subscribed to the Film tag, but can still tap any of the other tags to subscribe to them. Once tapped, they can be disabled in the future via the settings dialog button up in the header.</p>
<p>Here’s how it looks after this user has tapped ‘Steven Spielberg’:</p>
<p><img src="http://dev.joeblade.com/supporting/subs-new.png" alt="A new subscription" /></p>
<p>After the next news refresh, the Steven Spielberg tag now has its own page in the webapp:</p>
<p><img src="http://dev.joeblade.com/supporting/subs-spielberg.png" alt="Spielberg tag page" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dev.joeblade.com/2011/08/guardian-ipad-webapp-section-customisation-now-easier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guardian for iPad webapp: article navigation, new design</title>
		<link>http://dev.joeblade.com/2011/07/guardian-for-ipad-webapp-article-navigation-new-design/</link>
		<comments>http://dev.joeblade.com/2011/07/guardian-for-ipad-webapp-article-navigation-new-design/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 09:27:40 +0000</pubDate>
		<dc:creator>Paul Haine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.joeblade.com/?p=113</guid>
		<description><![CDATA[I've given my Guardian webapp a little visual overhaul.]]></description>
			<content:encoded><![CDATA[<p>I’ve given my Guardian webapp a little visual overhaul.</p>
<p><img src="http://dev.joeblade.com/supporting/gpad-2.png" alt="" /><br />
<img src="http://dev.joeblade.com/supporting/gpad-life.png" alt="" /><br />
<img src="http://dev.joeblade.com/supporting/gpad-2-article.png" alt="" /></p>
<p>Also included in this redesign is article navigation. Along the left hand side when you’re in article view, there are now up and down arrows. Tapping these should move you back and forth between articles in a section. All of the article tools — close, tweet, instapaper etc. — will also now follow you down the page, though this can be a little jumpy — until <code>position: fixed</code> is supported in iOS, this is as good as it gets. I did try a few different javascript solutions to this but they all seem like a pain in the arse. This’ll do for now.</p>
<p>The app itself has been using Web SQL rather than localStorage for storing articles for a few releases now. I’ll write up a more detailed post on that subject further down the line.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.joeblade.com/2011/07/guardian-for-ipad-webapp-article-navigation-new-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add any tag to Guardian webapp</title>
		<link>http://dev.joeblade.com/2011/07/add-any-tag-to-guardian-webapp/</link>
		<comments>http://dev.joeblade.com/2011/07/add-any-tag-to-guardian-webapp/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 09:22:50 +0000</pubDate>
		<dc:creator>Paul Haine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.joeblade.com/?p=108</guid>
		<description><![CDATA[As well as being able to customise which of the default Guardian sections you download news for, you can now add any Guardian tag to your list.]]></description>
			<content:encoded><![CDATA[<p>As well as being able to customise which of the default Guardian sections you download news for, you can now add any Guardian tag to your list.</p>
<p>Tap the ‘Add your own section’ button located in the settings dialog:</p>
<p><img src="http://dev.joeblade.com/supporting/add-button.png"></p>
<p>You’ll then see a dialog where you input the tag, plus a display name:</p>
<p><img src="http://dev.joeblade.com/supporting/add-panel.png"></p>
<p>This can take pretty much any tag you can find on the Guardian website. Just take everything after .co.uk/ and paste it in. Some examples:</p>
<p>travel/france<br />
tone/obituaries<br />
business/series/viewpointcolumn<br />
music/glastonbury-2011<br />
profile/charliebrooker<br />
environment/badgers</p>
<p>It also works with combiners, for instance:</p>
<p>Who’s died in the pop and rock industry? music/popandrock+tone/obituaries<br />
Interested in film <em>and</em> food? Try film/film+lifeandstyle/food-and-drink<br />
What’s Hadley Freeman saying about fashion? lifeandstyle/fashion+profile/hadleyfreeman</p>
<p>Close any dialogs and refresh the news — you should find your tags appearing in your section list like any other section.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.joeblade.com/2011/07/add-any-tag-to-guardian-webapp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guardian for iPad now allows section list customisation</title>
		<link>http://dev.joeblade.com/2011/07/guardian-for-ipad-now-allows-section-list-customisation/</link>
		<comments>http://dev.joeblade.com/2011/07/guardian-for-ipad-now-allows-section-list-customisation/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 16:22:42 +0000</pubDate>
		<dc:creator>Paul Haine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.joeblade.com/?p=103</guid>
		<description><![CDATA[You can now add to, or remove from, the default set of sections that my Guardian webapp gets the latest news for. Previously there was a hard-coded list of sections, a fairly arbitrary list that was largely off the top of my head, missing Education, Law, Society, Football, Stage and a couple of others. ]]></description>
			<content:encoded><![CDATA[<p>You can now add to, or remove from, the default set of sections that my Guardian webapp gets the latest news for. Previously there was a hard-coded list of sections, a fairly arbitrary list that was largely off the top of my head, missing Education, Law, Society, Football, Stage and a couple of others. </p>
<p>The default list remains, but now you should be able to see a settings icon up in the nav, as pictured below.</p>
<p><img src="http://dev.joeblade.com/supporting/gpad-settings-icon.png" alt="" /></p>
<p>Tap that icon and you’ll get a section list to customise.</p>
<p><img src="http://dev.joeblade.com/supporting/gpad-settings.png" alt="" /></p>
<p>Caveat: the more sections you include in your list, the less likely it is that they’ll all be available offline. It looks as if I can comfortably save about 15–20 sections’ worth of data to the browser’s storage area; anything above that and the data will still be displayed but may not be available offline.</p>
<p>Another caveat: you’re currently obliged to have the front page in your list. There’s some work I need to do to allow you to select a default first page. Once that’s done, you’ll be able to ditch the front page.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.joeblade.com/2011/07/guardian-for-ipad-now-allows-section-list-customisation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Guardian for iPad webapp now with fewer features</title>
		<link>http://dev.joeblade.com/2011/06/guardian-for-ipad-webapp-now-with-fewer-features/</link>
		<comments>http://dev.joeblade.com/2011/06/guardian-for-ipad-webapp-now-with-fewer-features/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 14:38:12 +0000</pubDate>
		<dc:creator>Paul Haine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.joeblade.com/?p=96</guid>
		<description><![CDATA[The boring "what I had to do to comply with Guardian API terms and conditions" post.]]></description>
			<content:encoded><![CDATA[<p>The boring “what I had to do to comply with Guardian API terms and conditions” post. In a nutshell:</p>
<ul style="padding-bottom: 10px;">
<li>No large images</li>
<li>No inline audio/video</li>
<li>Removing articles that the Guardian didn’t have rights to distribute via the API</li>
<li>Added the most asked-for feature — ads!</li>
</ul>
<p>Regarding the removed articles: I’ve chosen to remove entirely rather than just display headlines because it was annoying to keep clicking articles and finding that you couldn’t see the thing without being re-directed to the Guardian website. </p>
<p>On the other hand, the app is now missing a few ‘breaking news’ articles so I may re-introduce those articles in the future but place them in a dedicated area on the page so users know what to expect.</p>
<p>I may also redesign the page now that it’s missing the larger images, as it looks a bit weak now. Not sure yet though.</p>
<p><a href="http://g.joeblade.com">g.joeblade.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev.joeblade.com/2011/06/guardian-for-ipad-webapp-now-with-fewer-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guardian for iPad</title>
		<link>http://dev.joeblade.com/2011/06/guardian-for-ipad/</link>
		<comments>http://dev.joeblade.com/2011/06/guardian-for-ipad/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 18:22:33 +0000</pubDate>
		<dc:creator>Paul Haine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.joeblade.com/?p=88</guid>
		<description><![CDATA[Over a few weekends I knocked together an app-style webapp using the Guardian Content API, formatted for viewing on the iPad]]></description>
			<content:encoded><![CDATA[<p><span id="more-88"></span>Over a few weekends I knocked together an app-style webapp using the Guardian Content API, formatted for viewing on the iPad though I imagine it’ll work fine on wacky Android-based hardware as well and even desktop browsers of a certain vintage:</p>
<h3><a href="http://g.joeblade.com">g.joeblade.com</a></h3>
<p><a href="http://dev.joeblade.com/supporting/gpad.png"><img style="outline: 1px solid #999" src="http://dev.joeblade.com/supporting/gpad.png" width="460" alt="Guardian for iPad" /></a></p>
<h3>How it works</h3>
<p>It goes off to the API and gets the editors’ picks from a selected few sections, and then tops it up from the latest from that section, usually giving you about 15 articles per section. Tapping an article shows that article, plus if you’re online and that article is part of a package, sibling articles will display at the bottom.</p>
<p>I use localStorage to cache the API data for an hour, but you can refresh it yourself at any time from the toolbar. If you visit the app more than an hour later, it will automatically refresh. If you’re offline obviously it won’t refresh but you should find it possible to use the app thanks to HTML5’s offline functionality.</p>
<p>I recommend adding the page to your home screen so you can launch it without browser chrome.</p>
<h3>Caveats and notes</h3>
<p>Portrait orientation is recommended over landscape. Landscape will work but is a little crappy as I haven’t had much time for it yet.</p>
<p>Swiping left and right will switch sections, though I’m not happy yet about how this works as it’s a little temperamental.</p>
<p>Video and audio should be playable when they appear, so long as you’re using a browser that supports the MP4 and MP3 codecs.</p>
<p>I haven’t done a lot of checking in browsers other than Safari because I made this for me, and Safari is what I use. Fixing any bugs in other browsers is low on the to-do list.</p>
<p>Some things turn up in the article stream despite not being articles — Sudoku, for instance. Once I’ve worked out how to filter these out, I will.</p>
<h3>Still to come</h3>
<p>All sorts of crazy stuff.</p>
<p>Let me know how it works out if you use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.joeblade.com/2011/06/guardian-for-ipad/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Guardian Snapshot, an OS X Dashboard widget</title>
		<link>http://dev.joeblade.com/2011/01/guardian-snapshot-an-os-x-dashboard-widget/</link>
		<comments>http://dev.joeblade.com/2011/01/guardian-snapshot-an-os-x-dashboard-widget/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 23:08:09 +0000</pubDate>
		<dc:creator>Paul Haine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.joeblade.com/?p=78</guid>
		<description><![CDATA[Here’s a thing I made using HTML, JavaScript, CSS and the Guardian Open Platform content API: Guardian Snapshot, an OS X Dashboard widget. Once installed to your Dashboard, the widget will download the latest article headlines, plus the latest gallery and videos published in several sections of the guardian. Clicking the headlines will open the [...]]]></description>
			<content:encoded><![CDATA[<p>Here’s a thing I made using HTML, JavaScript, CSS and the <a href="http://www.guardian.co.uk/open-platform">Guardian Open Platform</a> content API: <cite>Guardian Snapshot</cite>, an OS X Dashboard widget.</p>
<p><span id="more-78"></span>Once installed to your Dashboard, the widget will download the latest article headlines, plus the latest gallery and videos published in several sections of the guardian. Clicking the headlines will open the links in your web browser of choice.</p>
<p><a href="http://dev.joeblade.com/examples/snapshot/guardian-snapshot.png"><img src="http://dev.joeblade.com/examples/snapshot/guardian-snapshot.png" alt="guardian snapshot" width="460" /></a></p>
<p>Some caveats: in this first release you can’t edit the list of sections (unless you want to open the widget up in Dashcode and edit the list yourself), and there is no auto-refreshing beyond the initial load — subsequent refreshes must be done manually via the orange icon in the top right. Also, I haven’t tested this a lot, so if it causes your computer to explode or accidentally downloads headlines from the Daily Mail, I apologise.</p>
<p>Download it here: <a href="http://dev.joeblade.com/examples/snapshot/snapshot.zip">Guardian Snapshot Dashboard widget (500kb)</a></p>
<h3>Update</h3>
<p><del>On Macs with Safari 4 installed there’s a bug where clicking links will open multiple browser tabs instead of just one. I’ve got a fix for that and will update in a few hours.</del></p>
<p>This bug has been fixed, download again if you’re having trouble.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.joeblade.com/2011/01/guardian-snapshot-an-os-x-dashboard-widget/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Go deep. Zoom out. All in one place. Some notes on the msnbc.com redesign.</title>
		<link>http://dev.joeblade.com/2010/07/go-deep-zoom-out-all-in-one-place-some-notes-on-the-msnbc-com-redesign/</link>
		<comments>http://dev.joeblade.com/2010/07/go-deep-zoom-out-all-in-one-place-some-notes-on-the-msnbc-com-redesign/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 14:07:44 +0000</pubDate>
		<dc:creator>Paul Haine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.joeblade.com/?p=54</guid>
		<description><![CDATA[Last week <a href="http://www.msnbc.msn.com/id/37643077">msnbc.com relaunched their news story pages</a> and I'm finding them pretty exciting. The heart of the redesign concept is the notion that in telling a story, all the different parts of a story -- an article, a video, a gallery, a comment thread, etc. -- are all equally valid and important. ]]></description>
			<content:encoded><![CDATA[<p>Last week <a href="http://www.msnbc.msn.com/id/37643077">msnbc.com relaunched their news story pages</a> and I’m finding them pretty exciting. The heart of the redesign concept is the notion that in telling a story, all the different parts of a story — an article, a video, a gallery, a comment thread, etc. — are all equally valid and important. To express this, they’ve turned any msnbc.com story page into the canonical, one-stop source for every bit of media and reporting related to that story, instead of having one URL for the article, one for the video, and so on.</p>
<p><span id="more-54"></span>Here’s a decent example:</p>
<p><a href="http://www.msnbc.msn.com/id/38081870/ns/disaster_in_the_gulf/">BP, feds too cozy for some in assessing damage<br />
Company weighs in on decision-making in every key aspect</a></p>
<p>This story is being reported with an article, a video and a photo slideshow — these are referred to as ‘slices’. Each slice also has a ‘drawer’ underneath it to allow you to continue exploring that particular type of media, or expand the article if there’s more content to read. Part of the rationale behind this is to abandon the notion of pageviews, as <a href="http://www.mikeindustries.com/blog/archive/2010/06/another-nail-in-the-pageview-coffin">Mike Davidson explains here</a>. Adverts are integrated into the general flow as slices in their own right, breaking up the content but not getting all in your face about it.</p>
<h2>Pages vs packages</h2>
<p>At the guardian we have the notion of a ‘story package’; it’s the same concept that msnbc are playing with but it’s simpler. Pieces of content — articles, galleries, videos, etc. — are editorially linked together in the editors’ tools and then every bit of content provides links to everything other bit of the same package. You can see it in action here, on the <a href="http://www.guardian.co.uk/music/2009/jun/25/michael-jackson-dead">story about Michael Jackson dying</a>. </p>
<p>It’s more flexible in some ways than msnbc’s approach and allows the editors to thematically link a much larger number of items — the Michael Jackson story package all on one page would be enormous, and the commenting model wouldn’t work; at guardian.co.uk you generally comment on the piece of content, not on the overarching story. In the case of the Jackson package there are several opinion pieces, each with a different slant on the story, each with their own discussion thread. This allows for a far more intimate dynamic between commenter and author, but does also fragment the discussion of the story. Swings and roundabouts.</p>
<p>One advantage to a story <em>page</em> rather than a story <em>package</em> is that more people may explore more aspects of the story if they’re presented in the same space. It’s very easy to quickly browse a gallery or watch a video if it’s immediately after an article and all you have to do to reach it is to continue scrolling.</p>
<h2>Navigation</h2>
<p>To explore the story page there are several floating icons that allow you to jump straight to slice you’re interested in, including links to the discussion thread and the ‘related content’ area at the foot of the story. These are pretty cool; essentially they’re a jazzed-up modern version of the ‘skip to content’ links that we’ve been peppering our sites with for a few years now except they’re not just for assistive devices, they’re for everyone, and they work pretty well. They always position themselves relative to the length of the page (though this might also work against them — as a user, I may find them easier to use if I always know where they’re going to be).</p>
<p>Their video player features both subtitles and transcripts which is a big usability and accessibility win. I rarely watch videos on sites because it either involves me getting headphones out if I’m in the office or turning down my radio if I’m at home, so subtitle support means I’m far more likely now to explore their video content. </p>
<p>The entire design is extremely polished; it feels like a finished product, very complete and lots of nice touches. It’s like playing a Nintendo game — I keep finding little secret bits and pieces like the hidden headlines at the very top of the page. I love every bit of their photo galleries. I love their timelines, visible on <a href="http://www.msnbc.msn.com/id/37972148/ns/us_news-crime_and_courts">this story</a>. There’s a Newsvine discussion about the redesign and predictably, most of the commenters <a href="http://world-news.newsvine.com/_news/2010/06/24/4558382-have-a-question-about-new-story-pages">hate it</a>. In my experience, this means the team behind the redesign have done something worthwhile, and they should feel very proud of themselves.</p>
<h2>Some niggles</h2>
<p>If JavaScript is disabled, you lose a <em>lot</em> of functionality. Photo slideshows no longer work at all, for instance. Visitors without JavaScript enabled are a small minority these days but nevertheless, some more graceful degradation would be nice.</p>
<p>There doesn’t appear to be any way in referencing a particular part of the story. If I want to send someone a link to the video for instance, I don’t think I can — I have to send them the story link and tell them to find the video. It would be nice if there were per-slice permalinks for this purpose.</p>
<p>The video player is in Flash so I can’t watch videos on my iPhone. There does seem to be a mobile version of the site so maybe I’m just looking in the wrong place, but as MobileSafari is a fully-featured desktop browser, I generally resent being carolled into the cut-down mobile site.</p>
<h2>Further reading</h2>
<ul>
<li><a href="http://www.msnbc.msn.com/id/37643077">Welcome to our new story pages | msnbc.com</a></li>
<li><a href="http://www.cooper.com/journal/2010/06/quick_critique_of_the_new_msnb.html">Quick critique of the new MSNBC redesign | cooper.com</a></li>
<li><a href="http://paidcontent.org/article/419-touting-redesign-msnbc-declares-pageviews-dead/">Touting Redesign, MSNBC Declares Pageviews ‘Dead’ | paidcontent.org</a></li>
<li><a href="http://jimray.tumblr.com/post/753953161/redesigning-stories">Redesigning stories | jimray</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dev.joeblade.com/2010/07/go-deep-zoom-out-all-in-one-place-some-notes-on-the-msnbc-com-redesign/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A short article about short links</title>
		<link>http://dev.joeblade.com/2010/06/a-short-article-about-short-links/</link>
		<comments>http://dev.joeblade.com/2010/06/a-short-article-about-short-links/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 18:23:25 +0000</pubDate>
		<dc:creator>Paul Haine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.joeblade.com/?p=52</guid>
		<description><![CDATA[In which I briefly note how you can use the Guardian’s own short URLs for our content pages: A short article about short links]]></description>
			<content:encoded><![CDATA[<p>In which I briefly note how you can use the Guardian’s own short URLs for our content pages: <a href="http://www.guardian.co.uk/help/insideguardian/2010/jun/02/1">A short article about short links</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev.joeblade.com/2010/06/a-short-article-about-short-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joeblade now using HTML5</title>
		<link>http://dev.joeblade.com/2010/05/joeblade-now-using-html5/</link>
		<comments>http://dev.joeblade.com/2010/05/joeblade-now-using-html5/#comments</comments>
		<pubDate>Mon, 31 May 2010 15:31:05 +0000</pubDate>
		<dc:creator>Paul Haine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Joeblade]]></category>

		<guid isPermaLink="false">http://dev.joeblade.com/?p=44</guid>
		<description><![CDATA[I’ve reworked joeblade.com to use new HTML5 elements in favour of generic divs: header, article, aside, footer and time. The structure I’m using is more or less as follows: &#60;header&#62; &#60;aside&#62; &#60;article&#62; &#60;header&#62; &#60;time&#62; &#60;footer&#62; You can view the source code for the full story. The first &#60;header&#62; is there to contain the masthead, and [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve reworked <a href="http://joeblade.com">joeblade.com</a> to use new HTML5 elements in favour of generic divs: <code>header</code>, <code>article</code>, <code>aside</code>, <code>footer</code> and <code>time</code>.</p>
<p><span id="more-44"></span>The structure I’m using is more or less as follows:</p>
<pre>
<code>&lt;header&gt;
&lt;aside&gt;
&lt;article&gt;
  &lt;header&gt;
    &lt;time&gt;
&lt;footer&gt;</code>
</pre>
<p>You can view the source code for the full story. The first <code>&lt;header&gt;</code> is there to contain the masthead, and that’s all it does for now. The <code>&lt;aside&gt;</code> is for ancillary information about the main article and its category: related posts, tags and other posts from the same category. The <code>&lt;article&gt;</code> is obviously the main bit of content on the page.</p>
<p>The second <code>&lt;header&gt;</code>, within the <code>&lt;article&gt;</code>, contains the post headline and the byline. The byline contains the <code>&lt;time&gt;</code> element for the publication date, amongst other things.</p>
<p>The <code>&lt;footer&gt;</code> just contains what you would expect; footer stuff. In my case, it contains a bunch of links to category indecies and a few other pages.</p>
<h2>The <code>&lt;time&gt;</code> element</h2>
<p>My publication date is marked up like this:</p>
<p><code>&lt;time datetime="2010-05-30"&gt;30 May, 2010&lt;/time&gt;</code></p>
<p>The text of the element is in a human readable form; the <code>datetime</code> attribute provides a machine-readable form (though what I’m using is probably still readable by most humans). If I was using multiple <code>&lt;time&gt;</code> elements then I could remove ambiguity as to the function of this first one by including a boolean <code>pubdate</code> attribute, to indicate that this is a reference to a publishing date rather than, for instance, an event.</p>
<h2>The <code>&lt;nav&gt;</code> element</h2>
<p>You’ll notice I’ve not used a <code>&lt;nav&gt;</code> element for any of the links in my footer — I ummed and ahhed about this for a while but decided against it on the grounds that the <code>&lt;nav&gt;</code> element is meant for the site’s major navigation, and my site doesn’t really <em>have</em> major navigation. It isn’t a site you really navigate — you’re generally just reading an article. So, this is more of a philosophical omission rather than a technical one.</p>
<h2>HTML5 enabling script</h2>
<p>Modern browsers will allow you to style unrecognised elements but to support versions of IE older than version 9 I’m using <a href="http://remysharp.com/2009/01/07/html5-enabling-script/">Remy Sharp’s HTML5 enabling script</a>.</p>
<h2>Benefits</h2>
<p>What I’ve done for joeblade is all pretty basic, but it did help me to think more about the actual structure of my site and what things meant. When everything’s a <code>&lt;div&gt;</code> you just end up throwing stuff together, but HTML5 makes you think a bit more, and I spent more time reorganising my page than I did introducing new elements. </p>
<p>It’s unclear what benefit there is at this stage; I assume that search engines will start paying more attention to HTML5 markup than <code>&lt;div&gt;</code>–heavy markup in the same way they tend to favour standards-based sites over old table-based layouts. At the moment though, converting my sites to HTML5 was useful as a thought exercise, and it’s refreshing to not have to use the same tag for every element on the page.</p>
<h2>Further reading</h2>
<p><a href="http://html5doctor.com/designing-a-blog-with-html5/">Designing a blog with HTML5 by Bruce Lawson</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev.joeblade.com/2010/05/joeblade-now-using-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

