<?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>HTML5 Doctor &#187; Misc</title>
	<atom:link href="http://html5doctor.com/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://html5doctor.com</link>
	<description>helping you implement HTML5 today</description>
	<lastBuildDate>Wed, 01 Feb 2012 09:28:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Dive into HTML5… on HTML5 Doctor</title>
		<link>http://html5doctor.com/dive-into-html5-doctor/</link>
		<comments>http://html5doctor.com/dive-into-html5-doctor/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 12:50:57 +0000</pubDate>
		<dc:creator>Oli Studholme</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[diveintohtml5]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Mark Pilgrim]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=3886</guid>
		<description><![CDATA[<p>We were surprised and saddened when Mark Pilgrim decided to retire from the internet and take his writing, including “Dive into HTML5” with him. However the interwebs have your back. We’re adding a mirror of the book here to add to the growing list, and plan to help keep it updated. So long Mark, and thanks for all the &#60;>!</p>]]></description>
			<content:encoded><![CDATA[<p>Last week, we were surprised and saddened when Mark Pilgrim, long time educator, raconteur, and writer of note, decided to retire from the internet. Unfortunately, he also decided to <a href="http://meyerweb.com/eric/thoughts/2011/10/04/searching-for-mark-pilgrim/" title="“Embracing HTTP error code 410 means embracing the impermanence of all things” Meyerweb: Searching For Mark Pilgrim"><code>410: gone</code> all of his writing</a>, including <cite>Dive into HTML5</cite>.</p>

<p>Mark provided this book <em>for free</em> on the web (under a <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons — Attribution 3.0 Unported — CC BY 3.0">Creative Commons By 3.0 license</a>), in addition to a published, for-sale version entitled <a href="http://www.amazon.com/dp/0596806027"><cite>HTML5: Up and Running</cite> from O’Reilly</a>. This is a very unusual setup, but one we’ve collectively benefitted from. Many HTML5 Doctor articles feature links to this book, and the sudden loss of this valuable resource was a little shocking.</p>

<p>The interwebs soon mobilised, however, and now there are several copies of this book, including:</p>

<ul>
<li><a href="http://diveintohtml5.info">diveintohtml5.info</a> and <a href="http://diveinto.org">diveinto.org</a> (<a href="https://github.com/jonathantneal/diveintohtml5">GitHub</a>)</li>
<li><a href="http://mislav.uniqpath.com/diveintohtml5/" title="Dive Into HTML5">mislav.uniqpath.com</a> (<a href="https://github.com/mislav/diveintohtml5">GitHub</a>)</li>
<li><a href="http://diveintohtml5.ep.io">diveintohtml5.ep.io</a> (<a href="https://github.com/diveintomark/diveintohtml5">GitHub</a>)</li>
<li>A bunch of forks, site archives, and PDFs on GitHub and elsewhere, such as <a href="http://mislav.uniqpath.com/2011/10/dive-into-html5/" title="Dive into HTML5: In memory of Mark Pilgrim">Mislav Marohnić’s beautiful PDF eBook</a></li>
</ul>

<p>There are also several partial translations, including:</p>

<ul>
<li>Chinese: <a href="http://diveintohtml5.com">diveintohtml5.com</a> (<a href="https://github.com/diveintohtml5-zh-cn/diveintohtml5.zh-cn">GitHub</a>)</li>
<li>Japanese: <a href="https://github.com/myakura/dih5ja">GitHub</a> and <a href="http://hail2u.net/documents/diveintohtml5-semantics.html">hail2u.net</a></li>
<li>Czech: <a href="http://kniha.html5.cz/">kniha.html5.cz</a> (<a href="https://github.com/met/diveintohtml5">GitHub</a>)</li>
<li>French: <a href="http://www.jeremyselier.com/diveintohtml5/">jeremyselier.com</a></li>
</ul>

<p><em>(Please leave a comment if you know of any others!)</em></p>

<p>Jonathan Neal is coordinating diveintohtml5.info and diveinto.org, and has added the following to the book’s title page:</p>

<blockquote>
<p>Mark Pilgrim has stopped maintaining this project, and we want it to continue. We’re not just patching broken links and updating APIs. We plan to actively maintain it; refreshing, updating, and reflecting the relevant and current state of HTML5, just as it had been during Mark’s tenure.</p>
<footer>— <cite><a href="http://diveintohtml5.info/" title="Dive Into HTML5">diveintohtml5.info</a></cite>, <a href="https://twitter.com/jon_neal">Jonathan Neal</a></footer>
</blockquote>

<p>We doctors feel the same way and plan to help keep the book updated. To that end, we’ve set up a mirror at <a href="http://diveinto.html5doctor.com" title="Dive Into HTML5"><strong>diveinto.html5doctor.com</strong></a>, and we’ll be experimenting with using <a href="https://github.com/html5doctor/diveintohtml5">GitHub</a> to contribute.</p>

<p>We’d like to publicly thank Mark Pilgrim for both writing this wonderful reference on HTML5 (and all his other writing over the years), and for making <cite>Dive into HTML5</cite> available under a CC-By license that makes it possible for us to mirror it here. We’re interested to see where this brave new world of distributed community editing collectively takes us, and <a href="https://github.com/html5doctor/diveintohtml5">we invite you to pitch in</a>.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul class="related"><li><a href="http://html5doctor.com/review-html5-designing-rich-internet-applications/" rel="bookmark" class="crp_title">Review: HTML5 Designing Rich Internet Applications</a></li><li><a href="http://html5doctor.com/html5-for-web-developers/" rel="bookmark" class="crp_title">HTML5 for Web Developers</a></li><li><a href="http://html5doctor.com/the-scoped-attribute/" rel="bookmark" class="crp_title">The scoped attribute</a></li><li><a href="http://html5doctor.com/server-sent-events/" rel="bookmark" class="crp_title">Server-Sent Events</a></li><li><a href="http://html5doctor.com/how-to-get-all-the-browsers-playing-ball/" rel="bookmark" class="crp_title">How to get all the browsers playing ball</a></li></ul></div><p><a href="http://html5doctor.com/dive-into-html5-doctor/" rel="bookmark">Dive into HTML5… on HTML5 Doctor</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on October 17, 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/dive-into-html5-doctor/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>HTML5: briefing notes for journalists and analysts</title>
		<link>http://html5doctor.com/html5-briefing-notes-journalists-analysts/</link>
		<comments>http://html5doctor.com/html5-briefing-notes-journalists-analysts/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 06:54:13 +0000</pubDate>
		<dc:creator>Bruce Lawson</dc:creator>
				<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=3547</guid>
		<description><![CDATA[<p>Your friendly neighbourhood doctors are often contacted by  journalists and analysts who have questions about HTML5, usually from a consumer of business perspective. This is great, as we spend many more hours every week mutely shaking our heads while reading the ill-informed columns from journalists or analysts who haven't contacted us.</p>
]]></description>
			<content:encoded><![CDATA[<p>Your friendly neighbourhood doctors are often contacted by  journalists and analysts who have questions about HTML5, usually from a consumer or business perspective. This is great, as we spend many more hours every week mutely shaking our heads while reading the <a href="http://www.brucelawson.co.uk/2011/html5-notes-for-analysts-and-journalists/">ill-informed columns</a> from journalists or analysts who haven&#8217;t contacted us.</p>
<p>Here are the most common questions we&#8217;re asked, with non-technical answers. Journos &#8211; you&#8217;re welcome to use these answers (a citation would be nice but isn&#8217;t required).</p>
<p>We&#8217;ll add new questions and answers as they are asked.</p>
<h2>What is HTML5?</h2>
<p>Depends what you mean. There are 3 different uses of the phrase &quot;HTML5&quot;:</p>
<h3>The HTML5 specification</h3>
<p>The most accurate meaning of HTML5 is the specification that is developed by two groups, the <a href="http://en.wikipedia.org/wiki/World_Wide_Web_Consortium">W3C</a> and <a href="http://en.wikipedia.org/wiki/Whatwg">WHATWG</a>, together. There are <a href="http://html5doctor.com/html5-for-web-developers/">different versions</a> of the core HTML5 specification.
<p>It is a much-needed evolution of the language that web pages are written in, and is designed for writing Web <strong>applications</strong> (dynamic interactive web pages that do something). Its predecessor, HTML4, dating from the late 1990s, was written for  Web <strong>Pages</strong> (static, hyperlinked documents of text, images, forms).
<p>Key facts:
<ul>
  <li>It&#8217;s designed to make web pages interoperable across browsers. These days, people use multiple browsers (For example, IE at work, Safari/ Opera on their phone, Opera/ Firefox at home) and it&#8217;s stupid and annoying if a website doesn&#8217;t work everywhere.</li>
  <li>All the browser manufacturers &#8211; Opera, Mozilla (Firefox), Apple (Safari), Microsoft (Internet Explorer), Google (Chrome) &#8211; are working together, along with loads of other individuals and organisations: Netflix, Adobe, IBM, HP, BBC etc.</li>
  <li>It&#8217;s designed to extend the capabilities of the current web, without breaking existing web pages </li>
  <li>It competes with plugins like Microsoft Silverlight and Adobe Flash (which themselves were developed to plug the holes in fossilized HTML4 standard)</li>
</ul>

<h3>HTML5 and close friends</h3>
<p>In addition to the core HTML5 specification, the WHATWG developed other specifications such as


<a href="http://en.wikipedia.org/wiki/Web_Workers">Web Workers</a>, <a href="http://dev.w3.org/html5/websockets/">Web Sockets</a>, <a href="http://www.w3.org/TR/webdatabase/">Web Database</a>. These add more features useful in applications, games and the like.
<p>(Many of these have been part of the core spec at some point, but moved out for procedural/ organisational reasons. They are all grouped together in a specification called <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/">Web Applications 1.0)</a>.
<h3>New, Exciting Web Technologies</h3>
<p>When most non-developers (and many less-informed developers) say &#8220;HTML5&#8243; they are referring to a whole slew of technologies: Core HTML5, its friends and others entirely unrelated technologies, such as  <a href="/finding-your-position-with-geolocation/">Geolocation</a> (the ability for your browser to &#8220;know&#8221; its location), Device Orientation, Touch Events, CSS3 animations (that can replace very simple Flash animations), SVG (a way of describing graphics that look crisp and unpixellated at any screensize) and, the new kid on the block, <a href="http://en.wikipedia.org/wiki/WebGL">WebGL</a>, a port of a popular 3D graphics library to the Web that allows 3D graphics and games in the browser.</p>
<P>Many of these are developed by the W3C; WebGL is developed by <a href="http://en.wikipedia.org/wiki/Khronos_Group">Khronos Group</a>.</p>
<p>It&#8217;s also important to note that many so-called &quot;HTML5&quot; demos are nothing to do with HTML5 at all; many Google Doodles, for example, use <a href="http://en.wikipedia.org/wiki/Dhtml">DHTML</a> &#8211; an HTML 4 technology from the turn of the millennium.
<h2>Why has HTML5 been invented?</h2>
<p>HTML 4 was creaking at the seams for the new breed of applications. Some things were impossible and needed plugins like Adobe Flash or Microsoft Silverlight; other things required elaborate hacks on undocumented features, which wasn&#8217;t a robust foundation for websites that make money for their owners.</p>
<h2>How many HTML5-compliant browsers are there?</h2>
<p>It depends on your definition. Because HTML5 extends HTML4, by definition all browsers have some HTML5 features.</p>
<p>If, on the other hand, you want to know which browsers include all Core HTML5 features, none of them do. They are all implementing pieces of the specification (which is 700+ pages long) but none implement all.</p>
<p>Disregarding all the hype, the modern versions of the browsers are all around the same level of implementation (although different browsers implement different features at different times, depending on the needs of their customers).</p>
<h2>Who&#8217;s driving HTML5?</h2>
<p>It began in Opera, in 2004, edited by Ian Hickson. Gradually all the other browser manufacturers joined. Hickson left Opera and joined Google, where he continues to edit the spec. </p>
<p>It&#8217;s fairest to say that browser manufacturers collaboratively drive the spec, with the W3C and many other organisations and individuals. Ultimately, it&#8217;s driven by the needs of  Web developers.</p>
<h2>Who&#8217;s using HTML5?</h2>
<p>Lots of people &#8211; not just tech companies: <a href="http://www.bostonglobe.com/">Boston Globe Newspaper</a>; <a href="http://www.nationwide.co.uk/default.htm">Nationwide Building Society</a>, <a href="http://www.yell.com/">Yell.com</a> and hundreds more. <a href="http://html5gallery.com/">HTML5gallery.com</a> showcases many HTML5 sites.</p>
<h2 id=ready>When will HTML5 be ready?</h2>
<p>Perhaps 2012. Perhaps 2022. It doesn&#8217;t matter; what matters is that a lot of it is implemented in browsers now, so it can be used now.</p>
<p>Saying that we can&#8217;t use HTML5 because it isn&#8217;t finished is like saying we can&#8217;t speak English because it isn&#8217;t finished.</p>
<h2>Is HTML5 incompatible with Internet Explorer?</h2>
<p>Nope. IE9 has good support. Support for some APIs can be patched into older browsers with a technique called <b>polyfilling</b> with JavaScript, or with plugins like Flash and Silverlight. Support for <code>&lt;canvas&gt;</code> can be faked in IE&lt;9. It&#8217;s generally the slow JavaScript engines in older browsers that cause problems. Video content can use a Flash fallback in older versions of all browsers.</p>
<p>It&#8217;s worth noting that many of the features in HTML5 (like <code>contenteditable</code>, 
the Drag and Drop API) were invented by  Microsoft and were included in IE5.</p>
<h2>Is HTML5 just about mobile?</h2>
<p>Absolutely not. Behind HTML5 are some <a href="http://www.w3.org/TR/html-design-principles/">Design Principles</a>, one of which states that it&#8217;s about <a href="http://www.w3.org/TR/html-design-principles/#universal-access">universal access</a>:</p>
<blockquote>
  <p>Features should be designed for universal access&hellip;Features should, when possible, work across different platforms, devices, and media.</p>
</blockquote>
<p>That said, there are several features that are useful on Mobile. If you&#8217;re looking at &quot;real&quot; HTML5, then the ability to continue to interact with a website even when offline via <a href="/go-offline-with-application-cache/">Application Cache (&#8220;Appcache&#8221;)</a> is a useful one. 
<p>The fact that you can use HTML5 &lt;canvas&gt; for animations on devices that, by choice or necessity, can&#8217;t use Adobe Flash can be advantageous.
<p>In the broader &quot;New Exciting Web Techologies&quot; definition of HTML5, Geolocation is a huge feature.
<h2>Will HTML5  kill Adobe Flash?</h2>
<p>No &#8211; or we hope not. For years Flash was the only way to add video to a page; now there is HTML5. This competition means both are getting better, which is great for developers. </p>
<p>Apple decided not to allow Flash on their iOS devices, which is what gave HTML5 video a great boost. It&#8217;s important to note that HTML5 multimedia on iOS is hardly a perfect platform:</p><ul>
<li><a href="http://blog.millermedeiros.com/2011/03/html5-video-issues-on-the-ipad-and-how-to-solve-them/">HTML5 video issues on the iPad and how to solve them</a></li>
<li><a href="http://blog.millermedeiros.com/2011/04/unsolved-html5-video-issues-on-ios/">Unsolved HTML5 video issues on iOS</a></li>
<li><a href="http://remysharp.com/2010/12/23/audio-sprites/">Audio Sprites (and fixes for iOS)</a></li>
</ul>
<p>For video that uses adaptive bit-rate streaming,  or Digital Rights Management (DRM), Flash remains a useful cross-browser tool.</p>

<p>It&#8217;s also necessary to realise that Flash does more than simply video. Some its basic functions like simple gaming have been usurped by HTML5 &lt;canvas&gt;, and the kind of trivial animations that it used to be used for (things spinning on hover, for example) are moved into <a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets">CSS 3</a>. However, for ease of authoring sophisticated animated content like  games and cartoons, it&#8217;s much easier for authors to write in Flash as Adobe&#8217;s authoring environment has many tools (tweening, timelines) that make it easy for visual developers. This will change as companies develop pleasant authoring environments for &lt;canvas&gt;, but it isn&#8217;t there yet.</p>
<p>(Adobe recently released a preview of a timeline-driven authoring environment for non-Flash animations called <a href="http://labs.adobe.com/technologies/edge/">Adobe Edge</a>. Ignore its claims to be &quot;HTML5&quot;; in its current early incarnation, it&#8217;s simply flying HTML 4&lt;div&gt;s around with JavaScript.)</p>
<h2>Will HTML5  kill mobile Apps?</h2>
<p>HTML5 (in the broadest sense of &quot;New Exciting Web Technologies&quot;) significantly enhance the capabilities of the Web. Two years ago, to access the Global Positioning System on the phone, you had to write a native app in C++ or Java or.NET or Objective C depending on platform. If you wanted to target all platforms, you write the same app multiple times. Now, you can access Geolocation data from JavaScript on every platform (and on laptops too!), by the user visiting a URL rather than downloading an app.</p>
<p>Open web technologies are providing access to the <a href="http://my.opera.com/core/blog/2011/03/23/webcam-orientation-preview">device&#8217;s camera and orientation</a>, the system <a href="https://mozillalabs.com/blog/2010/03/contacts-in-the-browser/">contact book</a>, peer-to-peer <a href="http://www.webrtc.org/">in-browser video conferencing</a>, the devices&#8217; file system, and many more. JavaScript engines are becoming almost as fast as native code, so the technical niche for native applications on high-end smartphones still exists, but is becoming smaller. On less sophisticated devices that can&#8217;t run fast JavaScript or a full web browser, native apps are still an important product.</p>
<p>There are non-technical reasons for apps, too. Operators like them very much: they can control distribution and therefore extract money from both purchasers and vendors. Whereas many people dislike the idea of a monolithic appstore and app approval process, some consumers value it. Appstores offer curation &#8211; consumers feel that the apps are vetted and therefore won&#8217;t wreck their phones, steal their identities or (shudder) expose them to Internet smut.</p>
<p>Apps built for one specific device can be highly integrated with the User Interface and User Experience conventions of that device. Some people see this as a compelling advantage. However, uptake of the Web doesn&#8217;t seem to have suffered because authors make one single website rather than  different websites for Linux, Mac and Windows. </p>
<h2>Any further questions?</h2>
<p>If you have any further questions, you can <a href="/ask-the-doctor/">ask the doctor</a>, or <a href="http://www.brucelawson.co.uk/contact/"> analysts/ accredited journalists can ask your author for a briefing</a>.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul class="related"><li><a href="http://html5doctor.com/video-the-track-element-and-webm-codec/" rel="bookmark" class="crp_title">Video: the track element and webM codec</a></li><li><a href="http://html5doctor.com/native-audio-in-the-browser/" rel="bookmark" class="crp_title">Native Audio in the browser</a></li><li><a href="http://html5doctor.com/why-designers-should-care-about-html5/" rel="bookmark" class="crp_title">Why designers should care about HTML5</a></li><li><a href="http://html5doctor.com/your-questions-12/" rel="bookmark" class="crp_title">Your Questions Answered #12</a></li><li><a href="http://html5doctor.com/the-video-element/" rel="bookmark" class="crp_title">The video element</a></li></ul></div><p><a href="http://html5doctor.com/html5-briefing-notes-journalists-analysts/" rel="bookmark">HTML5: briefing notes for journalists and analysts</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on September 20, 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/html5-briefing-notes-journalists-analysts/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Avoiding common HTML5 mistakes</title>
		<link>http://html5doctor.com/avoiding-common-html5-mistakes/</link>
		<comments>http://html5doctor.com/avoiding-common-html5-mistakes/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 13:38:05 +0000</pubDate>
		<dc:creator>Richard Clark</dc:creator>
				<category><![CDATA[Attributes]]></category>
		<category><![CDATA[Elements]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[figure]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[hgroup]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[nav]]></category>
		<category><![CDATA[section]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=3494</guid>
		<description><![CDATA[<p>Between curating sites for the HTML5 gallery and answering readers’ questions here at HTML5 Doctor, I see a host of HTML5 sites and their underlying markup. In this post, I’ll show you some of the mistakes and poor markup practices I often see and explain how to avoid them.</p>]]></description>
			<content:encoded><![CDATA[<p>Between curating sites for the <a href="http://html5gallery.com">HTML5 gallery</a> and answering readers’ questions here at HTML5 Doctor, I see a host of HTML5 sites and their underlying markup. In this post, I’ll show you some of the mistakes and poor markup practices I often see and explain how to avoid them.</p>

<section id="section-wrapper">
  <h2>Don’t use section as a wrapper for styling</h2>
  <p>One of the most common problems I see in people’s markup is the arbitrary replacement of <code>&lt;div&gt;</code>s with HTML5 sectioning elements — specifically, replacing wrapper <code>&lt;div&gt;</code>s (used for styling) with <code>&lt;section&gt;</code>s. In XHTML or HTML4, I would see something like this:</p>
  
  <pre><code>&lt;!-- HTML 4-style code --&gt;
&lt;div id="wrapper"&gt;
  &lt;div id="header"&gt;  
    &lt;h1&gt;My super duper page&lt;/h1&gt;
    &lt;!-- Header content --&gt;
  &lt;/div&gt;
  &lt;div id="main"&gt;
    &lt;!-- Page content --&gt;
  &lt;/div&gt;
  &lt;div id="secondary"&gt;
    &lt;!-- Secondary content --&gt;
  &lt;/div&gt;
  &lt;div id="footer"&gt;
    &lt;!-- Footer content --&gt;
  &lt;/div&gt;
&lt;/div&gt;</code></pre>

  <p>Now, I’m instead seeing this:</p>
  
  <pre><code>&lt;!-- Don’t copy this code! It’s wrong! --&gt;
<mark>&lt;section id="wrapper"&gt;</mark>
  &lt;header&gt;  
    &lt;h1&gt;My super duper page&lt;/h1&gt;
    &lt;!-- Header content --&gt;
  &lt;/header&gt;
  &lt;section id="main"&gt;
    &lt;!-- Page content --&gt;
  &lt;/section&gt;
  &lt;section id="secondary"&gt;
    &lt;!-- Secondary content --&gt;
  &lt;/section&gt;
  &lt;footer&gt;
    &lt;!-- Footer content --&gt;
  &lt;/footer&gt;
<mark>&lt;/section&gt;</mark></code></pre>
  
  <p>Frankly, that’s just wrong: <strong><code>&lt;section&gt;</code> is not a wrapper</strong>. <a href="http://html5doctor.com/section">The <code>&lt;section&gt;</code> element</a> denotes a semantic section of your content to help construct a <a href="http://html5doctor.com/outline">document outline</a>. It should contain a heading. If you’re looking for a page wrapper element (for any flavour of HTML or XHTML), consider applying styles directly to the <code>&lt;body&gt;</code> element as described by <a href="http://camendesign.com/code/developpeurs_sans_frontieres">Kroc Camen</a>. If you still need an additional element for styling, use a <code>&lt;div&gt;</code>. As <a href="http://html5doctor.com/div">Dr Mike explains, div isn’t dead</a>, and if there’s nothing else more appropriate, it’s probably where you really want to apply your CSS.</p>
  
  <p>With that in mind, here’s the correct way to mark up the above example using HTML5 and a couple of ARIA roles. (Note: you may need one <code>&lt;div&gt;</code> depending on your design.)</p>

  <pre><code>&lt;body&gt;
  &lt;header&gt;  
    &lt;h1&gt;My super duper page&lt;/h1&gt;
    &lt;!-- Header content --&gt;
  &lt;/header&gt;
  &lt;div role="main"&gt;
    &lt;!-- Page content --&gt;
  &lt;/div&gt;
  &lt;aside role="complementary"&gt;
    &lt;!-- Secondary content --&gt;
  &lt;/aside&gt;
  &lt;footer&gt;
    &lt;!-- Footer content --&gt;
  &lt;/footer&gt;
&lt;/body&gt;</code></pre>
    
  <p>If you’re not quite sure which element to use, then I suggest you refer to our <a href="http://html5doctor.com/flowchart">HTML5 sectioning content element flowchart</a> to guide you along your way.</p>

</section>

<section id="header-hgroup">
  <h2>Only use header and hgroup when they’re required</h2>
  
  <p>There’s no sense writing markup when you don’t have to, right? Unfortunately, I often see <code>&lt;header&gt;</code> and <code>&lt;hgroup&gt;</code> being used when there’s no need for them. You can get up to speed with our articles on <a href="http://html5doctor.com/header">the <code>&lt;header&gt;</code> element</a> and <a href="http://html5doctor.com/hgroup">the <code>&lt;hgroup&gt;</code> element</a>, but I’ll briefly summarise:</p>
  
  <ul>
    <li>The <code>&lt;header&gt;</code> element represents a group of introductory or navigational aids and usually contains the section’s heading</li>
    <li>The <code>&lt;hgroup&gt;</code> element groups a set of <code>&lt;h1&gt;</code>—<code>&lt;h6&gt;</code> elements representing a section’s heading when the heading has multiple levels, such as subheadings, alternative titles, or taglines</li>
  </ul>
  
  <section id="header-overuse">
    <h3>Overuse of header</h3>
    <p>As I’m sure you’re aware, the <code>&lt;header&gt;</code> element can be used multiple times in a document, which has popularized the following pattern:</p>

    <pre><code>&lt;!-- Don’t copy this code! No need for header here --&gt;
&lt;article&gt;
  <mark>&lt;header&gt;</mark>  
    &lt;h1&gt;My best blog post&lt;/h1&gt;
  <mark>&lt;/header&gt;</mark>
  &lt;!-- Article content --&gt;
&lt;/article&gt;</code></pre>

    <p>If your <code>&lt;header&gt;</code> element only contains a single heading element, leave out the <code>&lt;header&gt;</code>. The <code>&lt;article&gt;</code> ensures that the heading will be shown in the document outline, and because the <code>&lt;header&gt;</code> doesn’t contain multiple elements (as the definition describes), why write code when you don’t need to? Simply use this:</p>

    <pre><code>&lt;article&gt;  
  &lt;h1&gt;My best blog post&lt;/h1&gt;
  &lt;!-- Article content --&gt;
&lt;/article&gt;</code></pre>

  </section>

  <section id="hgroup-misuse">
    <h3>Incorrect use of <code>&lt;hgroup&gt;</code></h3>
    <p>On the subject of headers, I also frequently see incorrect uses of <code>&lt;hgroup&gt;</code>. You should not use <code>&lt;hgroup&gt;</code> in conjunction with <code>&lt;header&gt;</code> when:</p>

    <ul>
      <li>there’s only one child heading, or</li>
      <li>the <code>&lt;hgroup&gt;</code> would work fine on its own (i.e., without the <code>&lt;header&gt;</code>).</li>
    </ul>

    <p>The first problem looks like this:</p>

      <pre><code>&lt;!-- Don’t copy this code! No need for hgroup here --&gt;
&lt;header&gt;
  <mark>&lt;hgroup&gt;</mark>  
    &lt;h1&gt;My best blog post&lt;/h1&gt;
  <mark>&lt;/hgroup&gt;</mark>
  &lt;p&gt;by Rich Clark&lt;/p&gt;
&lt;/header&gt;</code></pre>

    <p>In that case, simply remove the <code>&lt;hgroup&gt;</code> and let the heading run free.</p>

    <pre><code>&lt;header&gt;
  &lt;h1&gt;My best blog post&lt;/h1&gt;
  &lt;p&gt;by Rich Clark&lt;/p&gt;
&lt;/header&gt;</code></pre>

    <p>The second problem is another case of including elements when they’re not necessarily required.</p>

    <pre><code>&lt;!-- Don’t copy this code! No need for header here --&gt;
&lt;header&gt;
  <mark>&lt;hgroup&gt;</mark>  
    &lt;h1&gt;My company&lt;/h1&gt;
    &lt;h2&gt;Established 1893&lt;/h2&gt;
  <mark>&lt;/hgroup&gt;</mark>
&lt;/header&gt;</code></pre>

    <p>When the only child of the <code>&lt;header&gt;</code> is the <code>&lt;hgroup&gt;</code>, why include the <code>&lt;header&gt;</code>? If you don’t have additional elements within the <code>&lt;header&gt;</code> (i.e., siblings of the <code>&lt;hgroup&gt;</code>), simply remove the <code>&lt;header&gt;</code> altogether.</p>

    <pre><code>&lt;hgroup&gt;  
  &lt;h1&gt;My company&lt;/h1&gt;
  &lt;h2&gt;Established 1893&lt;/h2&gt;
&lt;/hgroup&gt;</code></pre>

    <p>For more <code>&lt;hgroup&gt;</code> examples and explanations, read the detailed <a href="http://html5doctor.com/hgroup">article about it in the archives</a>.</p>

  </section>
  
</section>

<section id="nav-external">
  <h2>Don’t wrap all lists of links in <code>&lt;nav&gt;</code></h2>
  <p>With <a href="http://dev.w3.org/html5/html4-differences/#new-elements">30 new elements (at the time of writing)</a> introduced in HTML5, we’re somewhat spoilt for choice when it comes to creating meaningful, structured markup. That said, we shouldn’t abuse the super-semantic elements now made available to us. Unfortunately, that’s what I see happening with <code>&lt;nav&gt;</code>. The spec describes <code>&lt;nav&gt;</code> as follows:</p>
  
  <blockquote>
    <p>The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links.</p>
    
    <p>Note: Not all groups of links on a page need to be in a nav element — the element is primarily intended for sections that consist of <mark>major navigation blocks</mark>. In particular, it is common for footers to have a short list of links to various pages of a site, such as the terms of service, the home page, and a copyright page. The footer element alone is sufficient for such cases; while a nav element can be used in such cases, it is usually unnecessary.</p>
    <footer>
      <cite><a href="http://www.whatwg.org/specs/web-apps/current-work/complete/sections.html#the-nav-element">WHATWG HTML spec</a></cite>
    </footer>
  </blockquote>
  
  <p>The key phrase is ‘major’ navigation. We could debate all day about the definition of ‘major’, but to me it means:</p>
  
  <ul>
    <li>Primary navigation</li>
    <li>Site search</li>
    <li>Secondary navigation (arguably)</li>
    <li>In-page navigation (within a long article, for example)</li>
  </ul>
  
  <p>While there isn’t any right or wrong here, a straw poll coupled with my own interpretation tells me that the following shouldn’t be enclosed by <code>&lt;nav&gt;</code>:</p>
  
  <ul>
    <li>Pagination controls</li>
    <li>Social links (although there may be exceptions where social links <em>are</em> the major navigation, in sites like <a href="http://about.me">About me</a> or <a href="http://flavours.me">Flavours</a>, for example)</li>
    <li>Tags on a blog post</li>
    <li>Categories on a blog post</li>
    <li>Tertiary navigation</li>
    <li>Fat footers</li>
  </ul>
  
  <p>If you’re unsure whether to mark up a list of links with <code>&lt;nav&gt;</code>, ask yourself this: <q>Is this major navigation?</q> To help answer the question, consider the following rules of thumb:</p>
    
  <ul>
    <li><q>Don’t use <code>&lt;nav&gt;</code> unless you think <code>&lt;section&gt;</code> would also be appropriate, with an <code>&lt;hx&gt;</code></q> — <cite><a href="http://krijnhoetmer.nl/irc-logs/whatwg/20091209#l-480">Hixie on IRC</a></cite></li>
    <li>Would you add a link to it in a ‘skip to’ block for accessibility?</li>
  </ul>
  
  <p>If the answer to these questions is ‘no’, then it’s probably not a <code>&lt;nav&gt;</code>.</p>
</section>

<section id="figure">
  <h2>Common mistakes with the figure element</h2>
  <p>Ah, <code>&lt;figure&gt;</code>. The appropriate use of this element, along with its partner-in-crime <code>&lt;figcaption&gt;</code>, is quite difficult to master. Let’s look at a few common problems I see with <code>&lt;figure&gt;</code>.</p>

  <section>
    <h3>Not every image is a figure</h3>
    <p>Earlier, I told you not to write extra code when it’s not necessary. This mistake is similar. I’ve seen sites where every image has been marked up as a <code>&lt;figure&gt;</code>. There’s no need to add extra markup around your images for the sake of it. You’re just creating more work for yourself and not describing your content any more clearly.</p>

    <p>The spec describes <code>&lt;figure&gt;</code> as being <q>some flow content, optionally with a caption, that is self-contained and is typically referenced as a single unit from the main flow of the document.</q> Therein lies the beauty of <code>&lt;figure&gt;</code>, that it can be moved away from the primary content — to a sidebar, say — without affecting the document’s flow.</p>
  
    <aside class="sidenote">
      <p>These questions are also included in the <a href="http://html5doctor.com/flowchart">HTML5 element flowchart mentioned earlier</a>.</p>
    </aside>
        
    <p>If it’s a purely presentational image and not referenced elsewhere in the document, then it’s definitely not a <code>&lt;figure&gt;</code>. Other use cases vary, but as a start, ask yourself, <q>Is this image required to understand the current context?</q> If not, it’s probably not a <code>&lt;figure&gt;</code> (an <code>&lt;aside&gt;</code>, perhaps). If so, ask yourself, <q>Could I move this to an appendix?</q> If the answer to both questions is ‘yes’, it’s probably a <code>&lt;figure&gt;</code>.</p>

  </section>
  
  <section>
    <h3>Your logo is not a figure</h3>
    <p>Segueing nicely on, the same applies to your logo. Here are a couple of snippets that I see regularly:</p>
    
    <pre><code>&lt;!-- Don’t copy this code! It’s wrong! --&gt;
&lt;header&gt;
  &lt;h1&gt;
    &lt;figure&gt;
      &lt;img src="/img/mylogo.png" alt="My company" class="hide" /&gt;
    &lt;/figure&gt;
    My company name
  &lt;/h1&gt;
&lt;/header&gt;</code></pre>
    
    <pre><code>&lt;!-- Don’t copy this code! It’s wrong! --&gt;
&lt;header&gt;  
  &lt;figure&gt;
    &lt;img src="/img/mylogo.png" alt="My company" /&gt;
  &lt;/figure&gt;
&lt;/header&gt;</code></pre>
    
    <p>There’s nothing else to say here. It’s just plain wrong. We could argue until the cows come home about whether your logo should be in an <code>&lt;h1&gt;</code>, but that’s not what we’re here for. The real issue is the abuse of the <code>&lt;figure&gt;</code> element. <code>&lt;figure&gt;</code> should be used only when referenced in a document or surrounding sectioning element. I think it’s fair to say that your logo is rarely going to be referenced in such a way. Quite simply, don’t do it. All you need is this:</p>
    
    <pre><code>&lt;header&gt;  
  &lt;h1&gt;My company name&lt;/h1&gt;
  &lt;!-- More stuff in here --&gt;
&lt;/header&gt;</code></pre>
  </section>

  <section>
    <h3>Figure can be more than an image</h3>
    <p>Another common misconception regarding <code>&lt;figure&gt;</code> is that it can only be used for images. This isn’t the case. A <code>&lt;figure&gt;</code> could be video, audio, a chart (in SVG, for example), a quote, a table, a block of code, a piece of prose, or any combination of these and much more besides. Don’t limit your <code>&lt;figure&gt;</code>s to images. Our job as web standards affectionadoes is to accurately describe the content with our markup.</p>
    
    <p>A while back, <a href="http://html5doctor.com/figure">I wrote about <code>&lt;figure&gt;</code></a> in more depth. It’s worth a read if you want more detail or need a refresher.</p>
  </section>

</section>

<section id="type-attr">
  <h2>Don’t include unnecessary type attributes</h2>
  <p>This is probably the most common problem we see in HTML5 Gallery submissions. While it isn’t really a mistake, I believe it’s best practice to avoid this pattern.</p>
  
  <p>In HTML5, there’s no need to include the <code>type</code> attribute on <code>&lt;script&gt;</code> and <code>&lt;style&gt;</code> elements. While these can be a pain to remove if they’re automatically added by your CMS, there’s really no reason to include them if you’re coding by hand or if you have tight control over your templates. Since all browsers expect scripts to be JavaScript and styles to be CSS, you don&#8217;t need this:</p>
  
  <pre><code>&lt;!-- Don’t copy this code! It’s attribute overload! --&gt;
&lt;link <mark>type="text/css"</mark> rel="stylesheet" href="css/styles.css" /&gt;
&lt;script <mark>type="text/javascript"</mark> src="js/scripts.js"&gt;&lt;/script&gt;</code></pre>
    
  <p>Instead, you can simply write:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="css/styles.css" /&gt;
&lt;script src="js/scripts.js"&gt;&lt;/script&gt;</code></pre>
  
  <p>You can also reduce the amount of code you write to specify your character set, amongst other things. Mark Pilgrim’s chapter on semantics in <cite><a href="http://diveinto.html5doctor.com/semantics.html">Dive into HTML5</a></cite> explains all.</p>
  
</section>

<section id="form-attr">
  <h2>Incorrect use of form attributes</h2>
  <p>You may be aware that HTML5 has introduced a range of new attributes for forms. We’ll cover them in more detail in the coming months, but in the meantime, I’ll quickly show you a few things not to do.</p>
  
  <section>
    <h3>Boolean attributes</h3>
    
    <aside class="sidenote">
      <p>There are also boolean attributes for multimedia elements and others. The rules that I describe here apply to those elements as well.</p>
    </aside>
    
    <p>Several of the new form attributes are boolean, meaning their mere presence in the markup ensures the behaviour is set. These attributes include:</p>
    
    <ul>
      <li>autofocus</li>
      <li>autocomplete</li>
      <li>required</li>
    </ul>
    
    <p>Admittedly, I only rarely see this, but using <code>required</code> as an example, I’ve seen the following:</p>
    
    <pre><code>&lt;!-- Don’t copy this code! It’s wrong! --&gt;
&lt;input type="email" name="email" <mark>required="true"</mark> /&gt;
&lt;!-- Another bad example --&gt;
&lt;input type="email" name="email" <mark>required="1"</mark> /&gt;</code></pre>
     
    <p>Ultimately, this causes no harm. The client’s HTML parser sees the <code>required</code> attribute in the markup, so its function will still be applied. But what if you flip the code on its head and type <code>required="false"</code>?</p>
    
    <pre><code>&lt;!-- Don’t copy this code! It’s wrong! --&gt;
&lt;input type="email" name="email" <mark>required="false"</mark> /&gt;</code></pre>
    
    <p>The parser will still see the <code>required</code> attribute and implement the behaviour <em>even though you tried to tell it not to</em>. Certainly not what you wanted.</p>
    
    <p>There are three valid ways for a boolean attribute to be applied. (The second and third options only apply if you’re writing XHTML syntax.)</p>
    
    <ul>
      <li><code>required</code></li>
      <li><code>required=""</code></li>
      <li><code>required="required"</code></li>
    </ul>
    
    <p>Applying that to our above example, we would write this (in HTML):</p>

    <pre><code>&lt;input type="email" name="email" <mark>required</mark> /&gt;</code></pre>
    
  </section>
</section>

<section id="summary">
  <h2>Summary</h2>
  
  <p>It would be impossible for me to list here all the quirky markup patterns and practices I’ve come across, but these are some of the most frequently seen. What other common markup mistakes have you spotted around the web? Which areas of HTML5 require further clarification? We’d love to help get the wording or examples in the spec changed to make them a little more specific, so leave your thoughts below, and don’t forget to escape your HTML!</p>
</section>

<p><small>Thanks to Ian Devlin, Derek Johnson, Tady Walsh, the HTML5 Gallery curators, and the HTML5 Doctors for their input to this article.</small></p><div id="crp_related"><h3>Related Posts:</h3><ul class="related"><li><a href="http://html5doctor.com/the-hgroup-element/" rel="bookmark" class="crp_title">The hgroup element</a></li><li><a href="http://html5doctor.com/the-header-element/" rel="bookmark" class="crp_title">The header element</a></li><li><a href="http://html5doctor.com/your-questions-answered-7/" rel="bookmark" class="crp_title">Your Questions Answered #7</a></li><li><a href="http://html5doctor.com/your-questions-15/" rel="bookmark" class="crp_title">Your Questions #15</a></li><li><a href="http://html5doctor.com/the-hgroup-hokey-cokey/" rel="bookmark" class="crp_title">The hgroup hokey cokey</a></li></ul></div><p><a href="http://html5doctor.com/avoiding-common-html5-mistakes/" rel="bookmark">Avoiding common HTML5 mistakes</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on July 26, 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/avoiding-common-html5-mistakes/feed/</wfw:commentRss>
		<slash:comments>60</slash:comments>
		</item>
		<item>
		<title>The Doctors win a Critter award</title>
		<link>http://html5doctor.com/the-doctors-win-a-critter-award/</link>
		<comments>http://html5doctor.com/the-doctors-win-a-critter-award/#comments</comments>
		<pubDate>Mon, 30 May 2011 14:59:57 +0000</pubDate>
		<dc:creator>Bruce Lawson</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[award]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[critters]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[ubelly]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=3304</guid>
		<description><![CDATA[Last Wednesday saw HTML5Doctor win a Critters award for best blog.]]></description>
			<content:encoded><![CDATA[<p>Last Wednesday saw HTML5Doctor win a <a href="http://ubelly.com/2011/05/winning-at-the-critters/">Critters award</a> for best blog, courtesy of <a href="http://ubelly.com/about-us/">Ubelly</a>.</p>
<p>Yay.</p>
<p>Jeremy Keith snapped five doctors together at our booth at the Web Directions/ @media conference. Left to right you can see Mike Robinson, Jack Osborne, Rich Clark and Remy Sharp with Bruce in the foreground. Missing are Tom Leadbetter, Oli Studholme and Brandan Lennox.</p>
<p><img src="http://farm4.static.flickr.com/3522/5766768398_0d000709b8.jpg" alt="5 doctors and an award" /></p>
<p>We also got a nice pic with two of the Ubelly team&mdash;back-end specialist Dr Andrew Spooner and Ms Alex Ball. </p>
<p>Thanks Ubelly! And, from Bruce, thanks to <a href="http://dev.opera.com/">Opera</a> for letting me sneak some doctoring in during work time.</p>
<p><img src="http://farm4.static.flickr.com/3103/5766227059_90040b1952.jpg" alt="5 doctors and two microsofties" /></p>
<p>If you have an award or large quantities of banknotes to give us, just get in touch.
<div id="crp_related">
<h3>Related Posts:</h3>
<ul class="related">
<li><a href="http://html5doctor.com/web-directions-atmedia-2010/" rel="bookmark" class="crp_title">HTML5 Doctor at Web Directions @media</a></li>
<li><a href="http://html5doctor.com/get-your-html5-prescription-filled-at-media/" rel="bookmark" class="crp_title">Get your HTML5 prescription filled at @media</a></li>
<li><a href="http://html5doctor.com/happy-1st-birthday-us/" rel="bookmark" class="crp_title">Happy 1st Birthday us</a></li>
<li><a href="http://html5doctor.com/the-address-element/" rel="bookmark" class="crp_title">The Address Element</a></li>
<li><a href="http://html5doctor.com/speaking/" rel="bookmark" class="crp_title">HTML5 Doctor Speaking and Training Appearances</a></li>
</ul>
</div>
<p><a href="http://html5doctor.com/the-doctors-win-a-critter-award/" rel="bookmark">The Doctors win a Critter award</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on May 30, 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/the-doctors-win-a-critter-award/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Injecting new life into the Doctor</title>
		<link>http://html5doctor.com/injecting-new-life-into-the-doctor/</link>
		<comments>http://html5doctor.com/injecting-new-life-into-the-doctor/#comments</comments>
		<pubDate>Thu, 26 May 2011 13:51:59 +0000</pubDate>
		<dc:creator>Jack Osborne</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=3257</guid>
		<description><![CDATA[Before we start it is imperative to point out that this redesign is still very much a work in progress and over the coming weeks and months we will be looking to progress it further with the introduction of; fluidity, responsiveness through media queries, the introduction of new features and tweaking/removing certain aspects once we have analysed how you are using it.]]></description>
			<content:encoded><![CDATA[<p>Before we start it is imperative to point out that this redesign is still very much a work in progress and over the coming weeks and months we will be looking to progress it further with the introduction of; fluidity, responsiveness through media queries, the introduction of new features and tweaking/removing certain aspects once we have analysed how you are using it.</p>
<p>We hope you will agree that this redesign is a long time overdue, as this summer will see the Doctor turn two!</p>
<p>When we decided to create the site our mission statement was simple; create excellent content. We like to think we have achieved this by publishing high quality articles and quizzes. However, because of this the aesthetics of the site have remained the same and we felt it was time we gave the surgery a lick of paint. Now that we&#8217;ve built up a good base on content, we felt that the time was right to give the site some much needed TLC.</p>
<p>Redesigning a website is hard, redesigning a website which is used by tens of thousands of people is even harder and is probably the main reason why our redesign process dates back to 18th August and is only just seeing the light of day.</p>
<h2>More than just a redesign</h2>
<p>The project kicked off when our good friend, <a href="https://twitter.com/#!/oliverker">Oliver Ker</a>, was approached to inject new life into our brand. What we were looking for was an instantly recognisable symbol, something which people would be able to relate to HTML5. We think Oli has done a stellar job with our new branding and it provides us with an instantly recognisable identity to build upon. If you are interested in finding out more about the creative process then head over to <a href="http://oliverker.co.uk/journal/recent-work-html-5-doctor">Olivers blog and see what he has to say</a>.</p>
<p>Once we had a brand to work from we decided to start mocking up possible solutions for a direction we could take the site in. We were all in agreement as to which areas of the site needed addressing; it had to be simpler in all aspects, easier to read and utilise more of the newer technologies available.</p>
<p>Undoubtedly, you will have heard or experienced for yourself the issues faced when trying to design your own site and this site was certainly no different.</p>
<p>We considered multiple different design solutions &#8211; probably one for each Doctor &#8211; and it was only at our fifth attempt that we finally started to head in the direction which is now presented before you. The multiple  design directions we went down is something I will cover on my own blog as it is out with the scope of this article.</p>
<h2>Layout</h2>
<p>Barring a select few pages such as the element index (previously the glossary), HTML5 Doctor is represented with a three column layout, the first column is slim and narrow which contains meta information for items related to the page/post.</p>
<p>The second column is the main content holder which is where all the page, post(s) and comment(s) content appear. </p>
<p>The final column, which for want of a better word is essentially our sidebar that contains an array of information such as element index links, related posts, categories and authors, a twitter display which pulls out hashtags and advertisment blocks.</p>
<p>At the top of the site we&#8217;ve completed reworked the header which should hopefully make navigating the site much easier. We&#8217;ve provided users with two different navigation bars; the top menu provides an easy way to access all our secondary content and we&#8217;ve also introduced our &#8216;Doctor network&#8217; dropdown to provide access to our sister site HTML5 Gallery. Our main menu, located on the light blue bar, has been minimised to extremes, offering links to exisiting articles, the element index and our contact page. We&#8217;ve moved our search element higher up the page and plan to introduce breadcrumbs.</p>
<h2>Page structure</h2>
<p>Time to break down individual pages:</p>
<h3>Homepage</h3>
<p>With this being the most visited page on the site we wanted to try and do something a little special with it and for a long time we were devoid of any ideas until Doctor. Oli (<a href="http://twitter.com/boblet">@boblet)</a> came up with an idea which would help offer up all the valuable information that is scattered throughout the site and pull it all together.</p>
<p>First up we display our most recent article, which sits front and centre to provide it with the attention it deserves. The following item is the quick reference guide which links through to each entry in the element index. There are two very special things about our quick reference guide which we are very proud about:</p>
<ol>
<li>The hover states within this section have been created in canvas, by canvas supremo <a href="https://twitter.com/#!/robhawkes">Rob Hawkes</a>. Although this might not be the correct choice &#8211; many would argue SVG &#8211; we felt that this provided a fair trade-off and allowed us to use this new technology.</li>
<li>Second is that we can use this guide to promote a special subject &#8211; special subjects will have a bright orange background &#8211; which stands out from the regular hover states.</li>
</ol>
<p>After the reference guide we display a few more posts. </p>
<h3>HTML5 Doctor Article/Single page</h3>
<p>This layout follows on from that of the homepage. Here we have a meta column on the left which offers up a series of quick links for categories, tags and will when applicable show links to translated versions of the article. The main column is obviously where the article and comments will appear and the third column is where all the extra information appears.</p>
<h3>Element Index</h3>
<p>We&#8217;ve restyled the index so it is in fitting with the new design and we&#8217;ve added in all the content and code examples that were missing from the previous iteration. We&#8217;re sorry for being lazy and not finishing it when we first launched.</p>
<h2>A word on technologies</h2>
<p>At the start of this article we touched on the fact that we wanted to introduce some of the newer technologies (or perhaps more wide spread) available to the site. Some of the things we have included are:</p>
<ul>
<li><strong>@font-face:</strong> We&#8217;ve used Quicksand on our heading levels as this ties into our branding. Quicksand is a free font which can be <a href="http://www.fontsquirrel.com/fonts/Quicksand">downloaded here</a>.</li>
<li><strong>CSS3:</strong> last-child, first-child, (n)th-of-type, border-radius, canvas, gradients, box-shadow.</li>
<li>There are a few more easter eggs hidden under our lab coats but we&#8217;ll let you find them for yourself</li>
</ul>
<h2>Our prescription</h2>
<p>As we&#8217;ve said above, everything is still a work in progress, we will continue to evolve the site moving forward. Essentially, we felt that now was as good a time as any to push this out into the wild and let our readers form an opinion and offer up there thoughts on the design. If we didn&#8217;t do it now, we&#8217;d be forever arguing over the semantics of the design, the leading here and the letter spacing there. So feel free to leave a comment and tell us what you think, whether it covers design/semantics/typography. We look forward to hearing from you. Enjoy.
<div id="crp_related">
<h3>Related Posts:</h3>
<ul class="related">
<li><a href="http://html5doctor.com/nav-element/" rel="bookmark" class="crp_title">Semantic navigation with the nav element</a></li>
<li><a href="http://html5doctor.com/happy-1st-birthday-us/" rel="bookmark" class="crp_title">Happy 1st Birthday us</a></li>
<li><a href="http://html5doctor.com/designing-a-blog-with-html5/" rel="bookmark" class="crp_title">Designing a blog with html5</a></li>
<li><a href="http://html5doctor.com/html5-for-web-developers/" rel="bookmark" class="crp_title">HTML5 for Web Developers</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-2/" rel="bookmark" class="crp_title">Your questions answered #2</a></li>
</ul>
</div>
<p><a href="http://html5doctor.com/injecting-new-life-into-the-doctor/" rel="bookmark">Injecting new life into the Doctor</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on May 26, 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/injecting-new-life-into-the-doctor/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>.net Awards Nomination</title>
		<link>http://html5doctor.com/net-awards-nomination/</link>
		<comments>http://html5doctor.com/net-awards-nomination/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 11:19:26 +0000</pubDate>
		<dc:creator>Richard Clark</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[awards]]></category>
		<category><![CDATA[netmag]]></category>
		<category><![CDATA[practical web design]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=2470</guid>
		<description><![CDATA[<p>As you may or may not be aware, .net, the world's best-selling magazine for web builders, has opened voting for its annual .net Awards – a celebration of the very best in web design and development. We're proud to announce that not only has HTML5 Doctor been nominated in the blog of the year category but messers Lawson &#38; Sharp have also been nominated in the standards champion category.</p>]]></description>
			<content:encoded><![CDATA[<p>The world&#8217;s best-selling magazine for web builders, <a href="http://www.netmag.co.uk/">.net</a> (or &#8220;Practical Web Design&#8221; outside the UK) has opened voting for its annual .net Awards – a celebration of the very best in web design and development. We&#8217;re proud to announce that not only has HTML5 Doctor been nominated in the blog of the year category but Messrs. <a href="http://html5doctor.com/author/brucel/">Lawson</a> &amp; <a href="http://html5doctor.com/author/remys/">Sharp</a> have also been nominated in the standards champion category.</p>

<section>
  <h2>The .net Awards</h2>
  
  <p><img src="http://html5doctor.com/wp-content/uploads/2010/08/net-awards-logo.jpg" alt=".net awards logo 2010" class="alignright" /> Held annually since 1998, the long-running .net Awards mix public opinion with those of a leading panel of 100 industry experts, including the likes of Jeffrey Zeldman, Paul Boag and Molly Holzschlag, who deliberate on the final shortlist. (Disclosure: I am a judge for this years awards, but will abstain from voting in the two categories that HTML5 Doctor is represented.)</p> 

  <p>Winners of the prestigious .net Awards 2010 are announced on Thursday, 18th November at a special event in London.</p>
</p>
</section>

<section>
  <h2>Your vote counts</h2>
  <p>Without wanting to go all Obama on you, <strong>your vote counts</strong>. To see all the categories and nominees please <a href="http://www.thenetawards.com/">visit the site and vote</a>. If that vote happens to be for HTML5 Doctor as blog of the year or HTML5 surgeons <a href="http://twitter.com/brucel">Bruce</a> or <a href="http://twitter.com/rem">Remy</a> as your standards champion then we&#8217;d all be super-grateful (and one of Remy&#8217;s side projects <a href="http://snapbird.org">Snap Bird</a>, for searching twitter better, is up for best API use too).</p><p> For us  to be nominated alongside some well established, fantastically popular blogs is a great achievement and one that we&#8217;re really proud of. Especially when you consider we&#8217;ve only been going for <a href="http://html5doctor.com/happy-1st-birthday-us/">a little over a year</a>. Anything more would be a bonus and being nominated has really invigorated us to kick on and keep producing compelling content for you guys.</p>
  
  <p>For more information and the chance to vote, visit <a href="http://www.thenetawards.com">the .net awards site</a>.</p>
</section><div id="crp_related"><h3>Related Posts:</h3><ul class="related"><li><a href="http://html5doctor.com/web-directions-atmedia-2010/" rel="bookmark" class="crp_title">HTML5 Doctor at Web Directions @media</a></li><li><a href="http://html5doctor.com/get-your-html5-prescription-filled-at-media/" rel="bookmark" class="crp_title">Get your HTML5 prescription filled at @media</a></li><li><a href="http://html5doctor.com/happy-1st-birthday-us/" rel="bookmark" class="crp_title">Happy 1st Birthday us</a></li><li><a href="http://html5doctor.com/html5-simplequiz-6-zeldmans-fat-footer/" rel="bookmark" class="crp_title">HTML5 Simplequiz 6: Zeldman&#8217;s fat footer</a></li><li><a href="http://html5doctor.com/two-cheers-for-the-w3cs-html5-logo/" rel="bookmark" class="crp_title">Two cheers for the W3C&#8217;s HTML5 logo</a></li></ul></div><p><a href="http://html5doctor.com/net-awards-nomination/" rel="bookmark">.net Awards Nomination</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on August 26, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/net-awards-nomination/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy 1st Birthday us</title>
		<link>http://html5doctor.com/happy-1st-birthday-us/</link>
		<comments>http://html5doctor.com/happy-1st-birthday-us/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 09:45:27 +0000</pubDate>
		<dc:creator>Richard Clark</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[@media]]></category>
		<category><![CDATA[flowchart]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=2135</guid>
		<description><![CDATA[<p>It's our birthday and we'll cry if we want to, or so the song goes. Today marks HTML5 Doctors first birthday so we thought we'd let you in on the celebrations. This brief post takes us through a little recap of what we've done, looks at what's to come and we've even got a little birthday treat for you all - the HTML5 equivalent of bringing doughnuts to work.</p>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s our birthday and we&#8217;ll cry if we want to, or so the song goes. Today marks HTML5 Doctors first birthday so we thought we&#8217;d let you in on the celebrations. This brief post takes us through a little recap of what we&#8217;ve done, looks at what&#8217;s to come and we&#8217;ve even got a little birthday treat for you all &#8211; the HTML5 equivalent of bringing doughnuts to work.</p>

<h2>What we&#8217;ve done</h2>

<p><img src="http://html5doctor.com/wp-content/uploads/2010/06/doc2.jpg" alt="Illustration of a doctor" width="200" height="337" class="alignright size-full wp-image-2161" />The site was launched publicly a year ago today and what a year it&#8217;s been. We could never have expected the level of interest we&#8217;ve had nor that the site would be so well received. We&#8217;d like to thank you all for reading, commenting and linking to our articles. We intended the site to have a community feel and feel we&#8217;re continuing to work towards that.</p>

<p>Having met through twitter and then in person at <a href="http://futureofwebdesign.com">FOWD</a> 2009 the idea was formed over a few beers. The name derives from a certain <a href="http://twitter.com/zeldman">Mr Zeldman&#8217;s</a> <a href="http://www.zeldman.com/about/">&#8220;Ask Dr Web&#8221; (&#8220;A complete guide to web design&#8221;)</a>. You can find a little more on our <a href="http://html5doctor.com/about/">history over on the about page</a>. </p>

<p>We started with five doctors (Jack, Tom, Mike, Bruce &amp; Rich), which became six just before launch when <a href="http://twitter.com/rem">Remy</a> came on board. We&#8217;ve since grown to seven with the indomitable <a href="http://oli.jp/">Mr Studholme</a> joining our ranks several months ago. Extra credit should also go to <a href="http://bclennox.com">Brandan Lennox</a> who knuckles away in the background studiously editing our copy. Between us we&#8217;ve managed to crank out more than a post a week, which we hope will increase in the coming year. </p>

<p>We&#8217;ve also had several guest authors who have covered some great topics such as audio in the browser, why designers should care about <abbr>HTML</abbr>5 and data attributes so thanks to <a href="http://twitter.com/maboa">Mark</a>, <a href="http://twitter.com/cennydd">Cennydd</a> &amp; <a href="http://twitter.com/stompfrog">Chris</a>.

<p>Last November we launched the <a href="http://html5doctor.com/glossary">glossary</a> which offers an introductory view to <abbr>HTML</abbr>5 elements with code examples and links to our more in depth articles. It&#8217;s been a well used resource and we&#8217;re adding to it all the time, slowly building it up to be a complete resource.</p>

<p>In terms of events at least one of our team has spoken at a number of events in the past year, not least Bruce (with Martin Kliehm) being voted the 4th best talk at <abbr>SXSWi</abbr>. Also, earlier this month we ran a <abbr>HTML</abbr>5 clinic at Web Directions @Media in London. I think we managed to help quite a few people out down there. Remember to <a href="http://html5doctor.com/contact">get in touch</a> if you&#8217;re looking for someone to talk <abbr>HTML</abbr>5 at your event or you feel you need an emergency clinic setting up.</p>

<h2>Future Plans</h2>

<p>That&#8217;s enough looking back, now let&#8217;s start looking forward. We&#8217;ve got some cracking posts and super developments in the works for the coming months. I can&#8217;t say much more than that right now but I can tell you we&#8217;ll have articles on web forms, canvas, microdata and taking your applications offline in the not too distant future.</p>

<p>What we&#8217;d really love to do is to start writing articles that you, our readers want. So here&#8217;s your chance, if you&#8217;ve got a topic you&#8217;d like us to cover or an idea for the site then <em>please</em> leave a comment below. We&#8217;ll take a look through them and get writing.</p>

<h2 id="flowchart">A small gift</h2>

<p>Everyone likes to receive a present on their birthday right? Well for our birthday we decided to give you a present, in the form of a handy flowchart to help you choose the most semantically appropriate <abbr>HTML</abbr>5 element. Those lucky folk who attended <a href="http://atmedia.webdirections.org/">@media</a> already received have a hard copy but here&#8217;s the electronic version you asked for.</p>

<p><a href="/downloads/h5d-sectioning-flowchart.png" style="margin-bottom:1em;"><img src="/downloads/h5d-sectioning-flowchart.sml.png" alt="HTML5 Sectioning Flowchart by HTML5 Doctor" /></a></p>

<p>Inspired by an original version sent in by <a href="http://twitter.com/riddle">Piotr</a> (one of our readers) and developed by <a href="http://oli.jp/">Oli</a> the chart helps guide you through those tricky differences between <code>header</code>, <code>footer</code>, <code>aside</code>, <code>section</code>, <code>article</code>, <code>figure</code> and yes, <code>div</code>. It&#8217;s available in either <abbr>pdf</abbr> or <abbr>png</abbr> format.</p>

<div class="downloads">
<p><a href="/downloads/h5d-sectioning-flowchart.pdf" target="_blank"><img src="http://html5doctor.com/wp-content/uploads/2010/06/icon-pdf.png" alt="PDF Flowchart Download" /><br />Download PDF [320kb]</a></p>

<p><a href="/downloads/h5d-sectioning-flowchart.png" target="_blank"><img src="http://html5doctor.com/wp-content/uploads/2010/06/icon-png.png" alt="PNG Flowchart Download" /><br />Download PNG [110kb]</a></p>
</div>

<p style="clear:both;">We hope you find it useful and we&#8217;d love to hear any feedback you might have.</p>

<p>All that&#8217;s left for us to say is thanks for a great first year and here&#8217;s to the next one!</p>
<div id="crp_related"><h3>Related Posts:</h3><ul class="related"><li><a href="http://html5doctor.com/web-directions-atmedia-2010/" rel="bookmark" class="crp_title">HTML5 Doctor at Web Directions @media</a></li><li><a href="http://html5doctor.com/net-awards-nomination/" rel="bookmark" class="crp_title">.net Awards Nomination</a></li><li><a href="http://html5doctor.com/your-questions-18/" rel="bookmark" class="crp_title">Your Questions 18</a></li><li><a href="http://html5doctor.com/your-questions-5/" rel="bookmark" class="crp_title">Your Questions Answered #5</a></li><li><a href="http://html5doctor.com/avoiding-common-html5-mistakes/" rel="bookmark" class="crp_title">Avoiding common HTML5 mistakes</a></li></ul></div><p><a href="http://html5doctor.com/happy-1st-birthday-us/" rel="bookmark">Happy 1st Birthday us</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on June 29, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/happy-1st-birthday-us/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

