<?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>Nick Smith &#187; Uncategorized</title>
	<atom:link href="http://www.nicksmith.co.uk/blog/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicksmith.co.uk/blog</link>
	<description>Spotlight on random items from the web</description>
	<lastBuildDate>Wed, 29 Jun 2011 16:25:10 +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>What I didn&#8217;t know about HTML5</title>
		<link>http://www.nicksmith.co.uk/blog/2010/08/18/what-i-didnt-know-about-html5/</link>
		<comments>http://www.nicksmith.co.uk/blog/2010/08/18/what-i-didnt-know-about-html5/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 20:45:15 +0000</pubDate>
		<dc:creator>Nick Smith</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[browsers (UA)]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[development tools]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[iPad]]></category>

		<guid isPermaLink="false">http://www.nicksmith.co.uk/blog/?p=380</guid>
		<description><![CDATA[<p>(Plus a little bit of CSS3).</p>
<p><a href="http://www.brucelawson.co.uk/"><em>Bruce Lawson</em></a><em> from Opera software came to </em><a href="http://skillsmatter.com/"><em>Skillsmatter</em></a><em> on Wednesday night to talk about HTML5 (</em><a title="Video of Bruce's talk here" href="http://skillsmatter.com/podcast/ajax-ria/html5-and-css3-101"><em>video here</em></a><em>). What follows are my notes. I&#8217;m not an HTML5 boffin, but I did start to code a</em>&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>(Plus a little bit of CSS3).</p>
<p><a href="http://www.brucelawson.co.uk/"><em>Bruce Lawson</em></a><em> from Opera software came to </em><a href="http://skillsmatter.com/"><em>Skillsmatter</em></a><em> on Wednesday night to talk about HTML5 (</em><a title="Video of Bruce's talk here" href="http://skillsmatter.com/podcast/ajax-ria/html5-and-css3-101"><em>video here</em></a><em>). What follows are my notes. I&#8217;m not an HTML5 boffin, but I did start to code a client site in the new doctype recently. Here are the bits I thought were interesting. To read it properly you need to understand more about HTML5. I&#8217;d recommend the </em><a href="http://html5doctor.com/"><em>HTML5 Doctor</em></a><em> website or tentatively (I haven&#8217;t read it) </em><a href="http://introducinghtml5.com/"><em>Bruce and Remy&#8217;s book</em></a><em>. Sorry for any typo&#8217;s etc in the following.</em></p>
<p><a href="http://www.opera.com/">Opera</a> did their own study of the top twenty class and ID names because Google wouldn&#8217;t share their results (the HTML5 spec was built on the results of Google&#8217;s research). Google looked at 1000 million web pages. You&#8217;d wonder why was this important, but e.g. The ID and class names are really important for screen readers. HTML5 gives 28 new tags (or 29 because one&#8217;s still being decided).</p>
<p>There&#8217;s no version number in the HTML5 doctype because in implementation it never really mattered, bowsers will render what they can, they don&#8217;t care whether the tag&#8217;s in HTML4 or whatever. All the HTML5 doctype is designed to do is send the browser into standards mode. Therefore it&#8217;s the shortest string possible.</p>
<p>Interesting, if you don&#8217;t declare a character set, Internet Explorer (IE) has a small but real security risk. The character set declaration must appear within the first 512 bytes of the document. Browsers also never cared whether you closed your tags, they didn&#8217;t care whether you used upper or lowercase tag names. The validator did, but the browsers didn&#8217;t. The browser also doesn&#8217;t care (in HTML5) whether you put in the &lt;head&gt; and &lt;body&gt; elements, the browser puts them in if you don&#8217;t. He demo&#8217;ed Opera doing this. However Internet Explorer (I assume before IE9) won&#8217;t style up a page unless the body tag is present.</p>
<p>He recommends <a href="http://html5.validator.nu">http://html5.validator.nu</a> since it&#8217;s the validator that tends to be most up to date.</p>
<p><em>I forgot you don&#8217;t need to close tags in HTML5, that&#8217;s just weird, surely the browser has more to guess? Surely the rendering will become less predictable?</em></p>
<p><em>* Actually, I spoke to Bruce about this afterwards. He said 70 pages of the HTML5 spec are devoted to telling browsers what to do when elements aren&#8217;t closed properly. Therefore any guesswork (not really guesswork if it&#8217;s in the spec) on the browser&#8217;s part will be consistent across all </em><acronym title="user agents"><em>UAs</em></acronym><em>. The only thing I didn&#8217;t ask about is what happens in browsers that use the<a href="http://code.google.com/p/html5shiv/"> HTML5shiv</a> and don&#8217;t support HTML5, e.g. if IE reads the page, is it still rendering in HTML4? Do I still need to use closing tags to help it along?</em></p>
<p>The &lt;small&gt; element has been redesigned in HTML5 to mean &#8216;copyright&#8217;. It&#8217;s designed to isolate legalese from the rest of the content.</p>
<p>When thinking of &lt;article&gt; don&#8217;t think of a newspaper article (one per page), think of an article of clothing. If the content is discrete and could be pulled into another website it&#8217;s probably an article.</p>
<p>HTML5 can be styled in IE without JavaScript but you must know the DOM throughout. Bruce will post a link about this on Monday.</p>
<h2>Forms</h2>
<p>In HTML5 the browser implements standard error messages for forms. What I didn&#8217;t know was using JavaScript, you can intercept these messages and replace with your own. HTML5 is potentially more accessible since &#8220;built-in beats bolt-on&#8221;, if a slider etc are already built into the browser it&#8217;s better for you and accessibility. At the moment the date picker doesn&#8217;t work very well with screen readers. It currently depends on the browser and the operating system. <a href="http://www.nvda-project.org/">NVDA</a> and <a href="http://www.apple.com/accessibility/voiceover/">VoiceOver</a> both work quite well with HTML5 forms. The leading commercial screen reader vendors don&#8217;t appear to be interested.</p>
<h2>Video</h2>
<p>HTML5 video controls are keyboard accessible. You can use a still image to represent a video on screen but there&#8217;s a bug in Mobile Safari that doesn&#8217;t show the default image. Supporting <a href="http://en.wikipedia.org/wiki/Ogg">Ogg</a> and <a href="http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC">H.264</a> at the same time is possible! For Safari you put in a second child video source that&#8217;s coded in MP4. It means you have to encode your video twice to be cross browser compatible (three times if you use a Flash fallback). Put in an Ogg &lt;source&gt; for Opera, an H.264 &lt;source&gt; for Safari, then a Flash &lt;embed&gt; for IE (before IE9). There&#8217;s a bug in iPad that means it only recognises the first source element, so where you want to include H.264, Ogg and Flash fallback, you need to include them in that order. <em>Bruce plans to post his code examples for all of this on Monday, or you can review the video at the top of this post.</em></p>
<h2>CSS3</h2>
<p>There were lots of snippets of information on this. All I wrote down was the following: if using vendor prefixes in CSS, Bruce always includes all for the major browsers e.g. -moz- ,-ms-, -o-, -webkit- and the unprefixed statement, e.g &#8220;transition:&#8221;. Use these features with caution, you don&#8217;t know if proposed CSS declarations will be modified in implementation or dropped from the spec entirely (as &#8220;box-shadow&#8221; apparently has been, but it may come back).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicksmith.co.uk/blog/2010/08/18/what-i-didnt-know-about-html5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>6 million user website</title>
		<link>http://www.nicksmith.co.uk/blog/2008/09/30/6-million-user-website/</link>
		<comments>http://www.nicksmith.co.uk/blog/2008/09/30/6-million-user-website/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 22:51:02 +0000</pubDate>
		<dc:creator>Nick Smith</dc:creator>
				<category><![CDATA[@media]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[browsers (UA)]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development tools]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.nicksmith.co.uk/blog/2008/09/30/6-million-user-website/</guid>
		<description><![CDATA[<p>Several years ago I remember taking part in an online survey somewhere on the BBC website. It was geared towards understanding what I, as a user, wanted to see in future developments. I made the effort to stop and take&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Several years ago I remember taking part in an online survey somewhere on the BBC website. It was geared towards understanding what I, as a user, wanted to see in future developments. I made the effort to stop and take part because I believed there was something worthwhile in developing their web presence, I also believed they were willing to listen and respond. It seems I was right.</p>
<p>Apart from the <a href="http://www.bbc.co.uk/blogs/bbcinternet/2008/02/p2p_next.html">BBC internet blog</a> and <a href="http://backstage.bbc.co.uk/">backstage</a> etc. <a href="http://www.vivabit.com/atmedia2008/london/">@media 2008</a> had the fortune of hearing a whistle-stop tour of the redevelopment of the <a href="http://www.bbc.co.uk/">BBC homepage</a>. This site has haunted many web designers since it&#8217;s launch with comments from colleagues of &#8220;Why can&#8217;t we do&#8230; {insert name of feature here}&#8230; like the BBC homepage?&#8221;. It became a shining example of what can be achieved.</p>
<p>Tom Cartwright and Claire Roberts <a title="presented the BBC homepage" href="http://www.vivabit.com/atmedia2008/london/sessions/#forexample">presented</a> their short piece on the development of a site that: took them three months to build; had to cater for 6 million users per month; couldn&#8217;t contain loops in the code; couldn&#8217;t process XML; had to be accessible; where 5% of users (that&#8217;s 300,000) didn&#8217;t use Javascript. This is web development at the sharp end.</p>
<p>A point of interest is that they managed to get 60 image requests down to just 3 using <a href="http://www.alistapart.com/articles/sprites/">sprites</a>. This had the affect of reducing the number of <a href="http://developer.yahoo.com/performance/rules.html#num_http">HTTP requests</a>, a big saving on a highly trafficked site.</p>
<p>The size of this project is reflected in the fact that the development team recognised a need to drop <a href="http://jquery.com/">JQuery</a> as a Javascript framework and develop their own. Tom described Glow (<a href="http://www.bbc.co.uk/glow">www.bbc.co.uk/glow</a>), a new framework that supports <a href="http://www.apple.com/safari/">Safari</a> 1.3 (apparently unlike JQuery). We were told that Glow would be available as open source software towards the end of the year, but judging by the password it looks like this still hasn&#8217;t been finalised. They also mentioned that their next project will look towards a pan-BBC identity system for users. The idea is that they&#8217;d have implicit and explicit personalisation and that, once logged into one BBC site, your credentials would follow as you traverse the sites. In support of this the BBC joined the <a href="http://openid.net/">OpenID</a> federation, looking at becoming a consumer.</p>
<p>For insights into the future of the BBC homepage see <a title="BBC homepage beta" href="http://www.bbc.co.uk/home/beta/">www.bbc.co.uk/home/beta/</a>. They recommended Steve Souders&#8217; <a href="http://oreilly.com/catalog/9780596529307/">High Performance Web Sites</a> (he really knows optimisation).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicksmith.co.uk/blog/2008/09/30/6-million-user-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

