<?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>Bruce Lawson's  personal site</title>
	<atom:link href="http://www.brucelawson.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brucelawson.co.uk</link>
	<description></description>
	<lastBuildDate>Thu, 02 Sep 2010 10:41:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Rant: HTML5 != CSS 3</title>
		<link>http://www.brucelawson.co.uk/2010/rant-html5-css-3/</link>
		<comments>http://www.brucelawson.co.uk/2010/rant-html5-css-3/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 10:27:15 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Rants  complaints]]></category>
		<category><![CDATA[accessibility  web standards]]></category>

		<guid isPermaLink="false">http://www.brucelawson.co.uk/?p=2893</guid>
		<description><![CDATA[Trying out my new Ranting Hat, a present from Japan from Nedjma. Please note that rants are just that, and not necessarily eloquent or factual. (And I know that Eric Meyer and Jeffrey Zeldman are not the only two social liberals in the USA; I&#8217;ve actually met the other three.) Oh, and do I have [...]]]></description>
			<content:encoded><![CDATA[<p>Trying out my new Ranting Hat, a present from Japan from <a href="http://missnedjma.com/scrapbook.htm">Nedjma</a>.  Please note that rants are just that, and not necessarily eloquent or factual. (And I know that Eric Meyer and Jeffrey Zeldman are not the only two social liberals in the USA; I&#8217;ve actually met the other three.)</p>
<p>Oh, and do I have to say that this is a joke, is personal and nothing to do with my lovely employers at Opera? Unfortunately, I probably do.</p>
<p><embed src="http://www.youtube.com/v/K_vF3BuWwdw?fs=1&amp;hl=en_GB" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385" /></p>
<p>(I&#8217;ll transcribe it when I&#8217;m not so tired)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucelawson.co.uk/2010/rant-html5-css-3/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Turkey, and old friends</title>
		<link>http://www.brucelawson.co.uk/2010/turkey-and-old-friends/</link>
		<comments>http://www.brucelawson.co.uk/2010/turkey-and-old-friends/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 15:20:46 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Turkey]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[personal, friends and family]]></category>
		<category><![CDATA[traveller's tales]]></category>

		<guid isPermaLink="false">http://www.brucelawson.co.uk/?p=2886</guid>
		<description><![CDATA[My family and I had 10 days in Hisarönü, near Fethiye where I used to live in the early 90s. The resort itself was as I remembered it: a depressing mass of restaurants offering &#8220;full English breakfasts with real pork sausage!&#8221; but the hotel had a swimming pool, the mountains gave some cooling breeze, and [...]]]></description>
			<content:encoded><![CDATA[<p>My family and I had 10 days in Hisarönü, near Fethiye where I used to live in the early 90s. The resort itself was as I remembered it: a depressing mass of restaurants offering &#8220;full English breakfasts with real pork sausage!&#8221; but the hotel had a swimming pool, the mountains gave some cooling breeze, and it was easy to get to Fethiye, Ölüdeniz or the melancholy beauty of the deserted Greek village, <a href="http://www.flickr.com/photos/24374884@N08/sets/72157624724218780/">Kayaköy</a>.</p>
<p>I tracked down my old friend Asiye, who taught me lots of Turkish in 1993, and who I hadn&#8217;t seen since the year 2000 when we bumped into each other, utterly by chance, in the street in Bangkok. (Her Fethiye clothing shop, Şaman, has the strapline &#8220;there are no coincidences&#8221;.)</p>
<p>I think we can safely say that in 17 years neither Asiye nor I have changed one jot. Then:</p>
<p><a href="http://www.flickr.com/photos/24374884@N08/4893834785/"><img src="http://farm5.static.flickr.com/4079/4893834785_d4c5b955ed.jpg" width="359" height="500" alt="Asiye and me, on the beach at night, Fethiye, Turkey 1994" /></a></p>
<p>Now:</p>
<p><a href="http://www.flickr.com/photos/24374884@N08/4891745190/"><img src="http://farm5.static.flickr.com/4096/4891745190_d8b05520ff.jpg" width="442" height="500" alt="Asiye, Şaman shop, Paspatur, Fethiye" /></a></p>
<p>And I&#8217;m delighted that there was no reason for my earlier <a href="/2010/holiday-trepidation/">holiday trepidation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucelawson.co.uk/2010/turkey-and-old-friends/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to make websites that are mobile-friendly</title>
		<link>http://www.brucelawson.co.uk/2010/how-to-make-websites-that-are-mobile-friendly/</link>
		<comments>http://www.brucelawson.co.uk/2010/how-to-make-websites-that-are-mobile-friendly/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 14:34:47 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[accessibility  web standards]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.brucelawson.co.uk/?p=2882</guid>
		<description><![CDATA[I&#8217;ve written an article on making sure your websites have a fighting chance of working across devices (mobiles, consoles etc). It&#8217;s for web designers used to making desktop sites, rather than for people designing iThing apps. The article was originally called &#8220;The ultimate guide to mobile optimisation&#8221; but the boss rightly said no (you could [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written an article on making sure your websites have a fighting chance of working across devices (mobiles, consoles etc).</p>
<p>It&#8217;s for web designers used to making desktop sites, rather than for people designing iThing apps.</p>
<p>The article was originally called &#8220;The ultimate guide to mobile optimisation&#8221; but the boss rightly said no (you could write a book about the subject, but all the main points are introduced in the article). </p>
<p>So now it&#8217;s called <a href="http://dev.opera.com/articles/view/the-mobile-web-optimization-guide/">Mobile-friendly: The mobile web optimization guide</a>. Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucelawson.co.uk/2010/how-to-make-websites-that-are-mobile-friendly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Holiday trepidation</title>
		<link>http://www.brucelawson.co.uk/2010/holiday-trepidation/</link>
		<comments>http://www.brucelawson.co.uk/2010/holiday-trepidation/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 12:30:38 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Turkey]]></category>
		<category><![CDATA[traveller's tales]]></category>

		<guid isPermaLink="false">http://www.brucelawson.co.uk/?p=2869</guid>
		<description><![CDATA[It&#8217;s with some trepidation that I look forward to my holiday soon. There&#8217;s the usual worry of booking a package tour&#8212;will the hotel be as nice as it seemed on the Web? will the transfer taxi be there? (Actually, I only imagine these are the &#8220;usual&#8221; worries; we&#8217;ve never done a package before). But I [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s with some trepidation that I look forward to my holiday soon.</p>
<p>There&#8217;s the usual worry of booking a package tour&mdash;will the hotel be as nice as it seemed on the Web? will the transfer taxi be there? (Actually, I only imagine these are the &#8220;usual&#8221; worries; we&#8217;ve never done a package before).</p>
<p>But I have an extra worry. The last time I visited this town was in 1993 -1995 when I lived there, working as a musician and tarot card reader, and I left because I was run out of town.</p>
<p>The story goes like this.</p>
<p>Opposite the bar that I was working in was a small area where three female  students would spread out a cloth on the floor which they covered with hippie jewellry that they&#8217;d made in the hope of selling it to tourists. During the quiet parts of the day I&#8217;d hang with them, and we&#8217;d smoke cigarettes and improve our command of each others&#8217; languages. As occasionally happened when I was young and slim, one of the girls and I became <em>especially friendly</em>.</p>
<p>Towards the end of the season, I was playing my guitar in the bar, and an well-dressed gentleman in his early 40s came and stood by my stool as I took off my guitar for my smoke-beer-pee break. This often happened; people came up to request favourite songs for the the next set. He waited while I carefully put the plectrum under the corner of the scratchplate and put the guitar securely on its stand. And then he punched me in the face.</p>
<p>As I regained verticality, I asked him why he&#8217;d done that. &#8220;For sleeping with my wife&#8221;, he replied. I assured him that he was mistaken, and pointed out my girlfriend who was looking horrified and backing towards the door rather than racing forward to cradle me in her arms. &#8220;Yes, he replied. That&#8217;s my wife.&#8221;</p>
<p>Ignorance is no defence and although true, objecting that that she had neglected to inform me of her nuptial status was unlikely to mollify him. But he didn&#8217;t come back with a follow-up punch but instead  walked out of the bar, leaving two of his friends behind who very politely informed me that the usual penalty for wronging someone&#8217;s honour in such a way is to stab them in the buttocks. The reason is that there are no major blood vessels there, so the victim is very unlikely to die. However, it&#8217;s the largest muscle in the body so would take months to heal and lying down, sitting or walking would be agony. It was emphasised that if I were to remain in town more than one night, this might very well happen to me.</p>
<p>I left the next morning for Istanbul.</p>
<p>Seventeen years later, I suspect that none of the protagonists still live there. And I suspect that the years have suitably transformed me from the slim, bronzed beach bum that I was then into an unrecognizable and expanded figure.</p>
<p>But if I&#8217;m back early, after begging for a standby ticket at the airport, you&#8217;ll know why.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucelawson.co.uk/2010/holiday-trepidation/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>A Minimal HTML5 Document</title>
		<link>http://www.brucelawson.co.uk/2010/a-minimal-html5-document/</link>
		<comments>http://www.brucelawson.co.uk/2010/a-minimal-html5-document/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 16:19:08 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[accessibility  web standards]]></category>

		<guid isPermaLink="false">http://www.brucelawson.co.uk/?p=2841</guid>
		<description><![CDATA[There seems to be confusion about the minimal set of elements that make a valid HTML5 page. (Amended on prompting from Tab Atkins and Mathias Bynens in comments below.) The simplest valid document is &#60;!doctype html&#62; The title element is required in most situations, but when a higher-level protocol provides title information, e.g. in the [...]]]></description>
			<content:encoded><![CDATA[<p>There seems to be <a href="http://www.sitepoint.com/blogs/2010/05/25/a-minimal-html-document-html5-edition/">confusion</a> about the minimal set of elements that make a valid HTML5 page.</p>
<p>(Amended on prompting from Tab Atkins and Mathias Bynens in comments below.)</p>
<p>The simplest valid document is</p>
<pre>
<code>
&lt;!doctype html&gt;
</code>
</pre>
<p>The <a href="http://html5.org/tools/web-apps-tracker?from=4729&#038;to=4730"><code>title</code> element is  required  in most situations</a>, but when a higher-level protocol provides title information, e.g. in the Subject line of an e-mail when HTML is used  as an e-mail authoring format, the <code>title</code> element can be  omitted.</p>
<p>Assuming you&#8217;re writing a web page rather than an HTML email, you need the <code>title</code> element, although technically it can be blank. </p>
<pre>
<code>
&lt;!doctype html&gt;
&lt;title&gt;&lt;/title&gt;
</code>
</pre>
<p>However, you shouldn&#8217;t do that. Failure to specify a character encoding which can introduce an obscure but real <a href="http://code.google.com/p/doctype/wiki/ArticleUtf7">security vulnerability</a>. So, the simplest valid and secure document looks like this:</p>
<pre>
<code>
&lt;!doctype html&gt;
&lt;meta charset=utf-8&gt;
&lt;title&gt;blah&lt;/title&gt;
&lt;p&gt;I'm the content
</code>
</pre>
<p>(You don&#8217;t actually need the content, of course, but it&#8217;s a pretty rubbish web page without it, and an empty <code>title</code> isn&#8217;t much good.)</p>
<p>However, for accessibility reasons, you should declare the natural language of the document (English/ French/ Swahili) on the <code>html</code> element, which therefore means you need that element (note that you don&#8217;t need to close it, though):</p>
<pre>
<code>
&lt;!doctype html&gt;
&lt;html lang=en&gt;
&lt;meta charset=utf-8&gt;
&lt;title&gt;blah&lt;/title&gt;
&lt;p&gt;I'm the content
</code>
</pre>
<p>If you&#8217;re planning to use AppCache to enable offline applications, you&#8217;ll need the <code>html</code> element as the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#concept-appcache-manifest"><code>manifest</code> attribute</a> goes there.</p>
<p>Internet Explorer 9 Developer Preview 3 and its antecedents can&#8217;t apply CSS to new HTML5 elements without a <code>body</code> element. (Try it <a href="http://people.opera.com/brucel/demo/html5/minimal-html5.html">without <code>body</code></a> and <a href="http://people.opera.com/brucel/demo/html5/minimal-html5-IE.html">with <code>body</code></a>.)</p>
<p>So if you&#8217;re attempting to do that, the smallest valid,  secure, screenreader-accessible and stylable-in-IE HTML5 page you can have is </p>
<pre>
<code>
&lt;!doctype html&gt;
&lt;html lang=en&gt;
&lt;meta charset=utf-8&gt;
&lt;title&gt;blah&lt;/title&gt;
&lt;body&gt;
&lt;p&gt;I'm the content
</code>
</pre>
<p>Just because you can do this doesn&#8217;t mean you should, of course.  Depending on your colleagues, it could be confusing and thus a maintainability nightmare. </p>
<p>I use the <code>head</code> element, and close those tags that need closing (although I don’t bother with  trailing slashes on self-closing elements).</p>
<p>So the minimal  valid,  secure, screenreader-accessible and stylable-in-IE HTML5 page (not email) that it easily readable and maintainable (subjective, of course) is probably</p>
<pre>
<code>
&lt;!doctype html&gt;
&lt;html lang=en&gt;
&lt;head&gt;
&lt;meta charset=utf-8&gt;
&lt;title&gt;blah&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;I'm the content&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</code>
</pre>
<p>Enjoy. </p>
<p>(PS, <a href="http://www.amazon.com/gp/product/0321687299/">I co-wrote a book</a>!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucelawson.co.uk/2010/a-minimal-html5-document/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Introducing HTML5 lands!</title>
		<link>http://www.brucelawson.co.uk/2010/introducing-html5-lands/</link>
		<comments>http://www.brucelawson.co.uk/2010/introducing-html5-lands/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 13:07:56 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[accessibility  web standards]]></category>

		<guid isPermaLink="false">http://www.brucelawson.co.uk/?p=2785</guid>
		<description><![CDATA[I got home to find my author copies of Introducing HTML5 had arrived, straight from the printer in the US. They&#8217;ll be on the shelves in a week or so. Rather than engaging in weird &#8220;unboxing&#8221; photosets on Flickr, I decided to celebrate this joyous occasion in a different way. (Images may be NSFW if [...]]]></description>
			<content:encoded><![CDATA[<p>I got home to find my author copies of <a href="http://introducinghtml5.com/">Introducing HTML5</a> had arrived, straight from the printer in the US. They&#8217;ll be on the shelves in a week or so.</p>
<p>Rather than engaging in weird &#8220;unboxing&#8221; photosets on Flickr, I decided to celebrate this joyous occasion in a  different way.</p>
<p>(Images may be NSFW if you work a very prudish environment or are a nun.)</p>
<p><span id="more-2785"></span></p>
<p><a href="http://www.flickr.com/photos/24374884@N08/4793141518/"><img src="http://farm5.static.flickr.com/4115/4793141518_ced6be7a6e.jpg" width="500" height="393" alt="Flickr image: Bruce lies face-down on a bed, naked, reading a copy of his book while another copy is placed to prevent all of his shapely arse being visible" /></a></p>
<p>Remy upped my ante:</p>
<p><a href="http://www.flickr.com/photos/remysharp/4793285860/"><img src="http://farm5.static.flickr.com/4114/4793285860_73987b0065.jpg" width="324" height="500" alt="Flickr image: A black and white faux-1920s image of Remy naked, with his gentlemanly appendage obscured by a stack of 25 copies of Introducing HTML5" /></a></p>
<p>So get the book. It&#8217;s the only thing that will take your mind off these images.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucelawson.co.uk/2010/introducing-html5-lands/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>
