<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><description>lest I forget (Oli Studholme)</description><title>@boblet</title><generator>Tumblr (3.0; @boblet)</generator><link>http://boblet.tumblr.com/</link><item><title>"Any sufficiently advanced incompetence is indistinguishable from malice."</title><description>“Any sufficiently advanced incompetence is indistinguishable from malice.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;h2&gt;&lt;a href="http://en.wikipedia.org/wiki/Clark's_Law"&gt;Clark’s Law&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;Via &lt;a href="http://adactio.com/journal/1624/"&gt;Adactio’s “Burge Pitch Torrent”&lt;/a&gt;.&lt;/p&gt;&lt;/em&gt;</description><link>http://boblet.tumblr.com/post/234845065</link><guid>http://boblet.tumblr.com/post/234845065</guid><pubDate>Fri, 06 Nov 2009 19:35:29 +0900</pubDate><category>burge</category><category>pitch</category><category>torrent</category><category>dmca</category><category>stupid</category></item><item><title>"The craftman’s spirit, I think, imbues people with a sense of beauty, as in elaboration, delicacy,..."</title><description>“The craftman’s spirit, I think, imbues people with a sense of beauty, as in elaboration, delicacy, care, simplicity (words I often use).”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;h2&gt;&lt;a href="http://informationarchitects.jp/kenya-hara-on-japanese-aesthetics/"&gt;Kenya Hara On Japanese Aesthetics&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;Kenya Hara, creative director of MUJI and professor at the Musashino Art University, talking about 職人気質 (taking pride in your work) felt by Japanese people. Translated by &lt;a href="http://informationarchitects.jp/"&gt;iA&lt;/a&gt; for a New York article “&lt;a hef="http://roomfordebate.blogs.nytimes.com/2009/10/19/beauty-and-the-bento-box/#kenya"&gt;Beauty and the Bento Box&lt;/a&gt;”.&lt;/p&gt;&lt;/em&gt;</description><link>http://boblet.tumblr.com/post/232655346</link><guid>http://boblet.tumblr.com/post/232655346</guid><pubDate>Wed, 04 Nov 2009 16:01:20 +0900</pubDate><category>Kenya Hara</category><category>muji</category><category>japan</category><category>aesthetics</category><category>craftsmanship</category></item><item><title>The Horribly Slow Murderer with the Extremely Inefficient Weapon...</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/9VDvgL58h_Y&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/9VDvgL58h_Y&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;h2&gt;The Horribly Slow Murderer with the Extremely Inefficient Weapon by &lt;a href="http://www.richard-gale.com"&gt;Richard Gale&lt;/a&gt;
&lt;/h2&gt;

&lt;blockquote&gt;&lt;p&gt;… and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, and again, andagain, andagain, andagain, andagain, andagain, andagain,andagain,andagain, andagain,andagain,andagain,andagain,andagainandagainand againandagainandagainandagain …&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://boblet.tumblr.com/post/228470879</link><guid>http://boblet.tumblr.com/post/228470879</guid><pubDate>Sat, 31 Oct 2009 11:21:41 +0900</pubDate><category>movie</category><category>spoon</category><category>murder</category></item><item><title>Troubleshooting MySQL installation on Snow Leopard</title><description>&lt;p&gt;I installed &lt;a href="http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/" title="Hivelogic - Compiling MySQL on Snow Leopard"&gt;MySQL 5.1.39 via Hivelogic’s “Compiling MySQL on Snow Leopard”&lt;/a&gt; and got the dreaded&lt;/p&gt;

&lt;pre&gt;&lt;samp&gt;$ &lt;kbd&gt;mysql&lt;/kbd&gt;
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)&lt;/samp&gt;&lt;/pre&gt;

&lt;p&gt;I eventually tracked the problem down, but MySQL doesn’t make things easy. This error can be from a bunch of things, so here’s what helped&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Check Console.app&lt;/strong&gt;—this was showing MySQL trying to start (and failing) every 10 seconds (ouch), but it gave me a pointer to the MySQL log file:&lt;br/&gt;&lt;pre&gt;&lt;samp&gt;10/27/09 10:51:24 PM	com.mysql.mysqld[5198]	091027 22:51:24 mysqld_safe Logging to '/usr/local/mysql/var/&lt;em&gt;My_HD&lt;em&gt;&lt;/em&gt;.local.err'.&lt;/em&gt;&lt;/samp&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the MySQL error log&lt;/strong&gt;—unfortunately this is inside a chowned folder so I needed to &lt;kbd&gt;sudo tail -n100 /usr/local/mysql/var/&lt;em&gt;My_HD&lt;/em&gt;.local.err&lt;/kbd&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check your &lt;code&gt;my.cnf&lt;/code&gt;&lt;/strong&gt;—the log pointed to an error in my &lt;code&gt;/etc/my.cnf&lt;/code&gt; file. I should have tried checking or removing the text I added earlier&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After fixing the typo, I needed to make a link from the actual mysql.sock file (in &lt;samp&gt;/private/var/mysql/mysql.sock&lt;/samp&gt;) to where &lt;kbd&gt;mysql&lt;/kbd&gt; expects it (which is actually &lt;samp&gt;/private/tmp/mysql.sock&lt;/samp&gt;, as &lt;samp&gt;/tmp&lt;/samp&gt; and &lt;samp&gt;/var&lt;/samp&gt; actually map to &lt;samp&gt;/private/tmp&lt;/samp&gt; and &lt;samp&gt;/private/var&lt;/samp&gt; respectively):&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ &lt;kbd&gt;ln -s /private/var/mysql/mysql.sock /private/tmp/mysql.sock&lt;/kbd&gt;&lt;/code&gt;&lt;/pre&gt;</description><link>http://boblet.tumblr.com/post/224961576</link><guid>http://boblet.tumblr.com/post/224961576</guid><pubDate>Wed, 28 Oct 2009 00:50:55 +0900</pubDate><category>mysql</category><category>macosx</category><category>snow leopard</category><category>install</category><category>troubleshooting</category></item><item><title>Installing gibak on Snow Leopard</title><description>&lt;p&gt;&lt;a href="http://eigenclass.org/hiki/gibak-0.3.0"&gt;Gibak&lt;/a&gt; is an OCaml wrapper for Git to make it easier to use Git for backing up your hard disk, or parts thereof. I probably should just start paying for &lt;a href="http://www.getdropbox.com/"&gt;DropBox&lt;/a&gt; already, but I still feel a little worried about moving eg ~/Library/ into the Dropbox folder and symlinking it.&lt;/p&gt;

&lt;p&gt;Unfortunately the original author Mauricio Fernandez hasn’t been maintaining it recently, but the wonders of Github mean it’s had several collaborative bug fixes. I’ve used a &lt;a href="http://github.com/ChrisJohnsen/gibak/" title="ChrisJohnsen's gibak at trailing-slash - GitHub"&gt;fork by Chris Johnsen&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;However I had some trouble getting it to compile, with this error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.09 sec)
- build . find-git-repos.o
+ ocamlfind ocamlopt -package fileutils,unix -warn-error A -dtypes
-inline 10 -S -I . -c find-git-repos.ml
File "find-git-repos.ml", line 1, characters 0-1:
Warning X: bad source file name: "Find-git-repos" is not a valid module name.
File "find-git-repos.ml", line 1, characters 0-1:
Error: Error-enabled warnings (1 occurrences)
*** omake: 23/49 targets are up to date
*** omake: failed (0.22 sec, 0/3 scans, 1/7 rules, 1/83 digests)
*** omake: targets were not rebuilt because of errors:
  find-git-repos.cmi
     depends on: find-git-repos.ml
  find-git-repos.cmx
     depends on: find-git-repos.ml
  find-git-repos.o
     depends on: find-git-repos.ml&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After getting completely stuck I asked Chris for help, and he very kindly figured out my problem. Due to a change in &lt;code&gt;ocaml-fileutils-0.4.0&lt;/code&gt; I needed to change line 8 of gibak &lt;code&gt;oametastore.ml&lt;/code&gt; from &lt;code&gt;open FileUtil.StrUtil&lt;/code&gt; to:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;open FileUtil&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I also needed to change the &lt;code&gt;OMakeFile&lt;/code&gt; to include the path to &lt;code&gt;ocaml-fileutils&lt;/code&gt; and suppress the module name error &lt;code&gt;ocaml-3.11.0&lt;/code&gt; generates:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;INCLUDES += /opt/local/lib/ocaml/site-lib/fileutils
OCAMLFLAGS += -warn-error x&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Chris is adding these changes to his gibak fork, so you should just clone that and take it from there (&lt;a href="http://wiki.github.com/ChrisJohnsen/gibak" title="Home - gibak - GitHub"&gt;see the wiki for more info&lt;/a&gt;). Thanks again for your help Chris, and also to Jay Levitt!&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/220759296</link><guid>http://boblet.tumblr.com/post/220759296</guid><pubDate>Fri, 23 Oct 2009 17:01:00 +0900</pubDate><category>macosx</category><category>snow leopard</category><category>gibak</category><category>git</category><category>install</category></item><item><title>Installing omake-0.9.8.5, ocaml-fileutils-0.4.0 on Snow Leopard</title><description>&lt;p&gt;For &lt;code&gt;omake&lt;/code&gt; I was getting the error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Undefined symbols:
  "_caml_sync", referenced from:
      _camlOmake_exec__28 in[==================================================================================== exec.a(omake_exec.o)01161
ld: symbol(s) not found
collect2: ld returned 1 exit status
File "caml_startup", line 1, characters 0-1:
Error: Error during linking&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I commented out the reference to &lt;code&gt;caml_sync&lt;/code&gt; in &lt;code&gt;omake_exec.ml&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(* external sync : unit -&gt; unit = "caml_sync" *)&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Next, I was getting this error for &lt;code&gt;ocaml-fileutlis&lt;/code&gt; (which isn’t in MacPorts yet):&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/usr/bin/install: illegal option -- t
make: *** [install] Error 64&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The makefile contained:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/usr/bin/install -c -d /usr/local/share/doc/ocaml-fileutils/api
/usr/bin/install -c -m 644 -t /usr/local/share/doc/ocaml-fileutils/api \&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It seems that &lt;code&gt;-t&lt;/code&gt; (which is used for denoting the destination directory) isn’t an option in MacOS X’s &lt;code&gt;/usr/bin/install&lt;/code&gt;, so I edited the makefile from:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;	$(INSTALL) -d $(htmldir)/api
	$(INSTALL_DATA) -t $(htmldir)/api \
	  $(wildcard $(BUILDDIR)/fileutils.docdir/*)&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;to:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;	$(INSTALL_DATA) $(wildcard $(BUILDDIR)/fileutils.docdir/*) \
	$(htmldir)/api&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Seems to have worked…&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/219826119</link><guid>http://boblet.tumblr.com/post/219826119</guid><pubDate>Thu, 22 Oct 2009 17:21:00 +0900</pubDate><category>snow leopard</category><category>macosx</category><category>terminal</category><category>omake</category><category>ocaml</category><category>gibak</category></item><item><title>Torture Memos: Waterboarding, by Jonathan Mann


I shared this...</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/sJSXbA9j0Js&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/sJSXbA9j0Js&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;h2&gt;Torture Memos: Waterboarding, by &lt;a href="http://www.jonathanmannmusic.com"&gt;Jonathan Mann&lt;/a&gt;
&lt;/h2&gt;

&lt;blockquote cite="http://likeit.tumblr.com/post/200889002"&gt;&lt;p&gt;I shared this on Google. I’ve emailed it. I want to mail it via snail mail to my older family members who don’t use email, but I have yet to figure out how to do so.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="http://likeit.tumblr.com/post/200889002"&gt;likeit&lt;/a&gt;, via &lt;a href="http://misseffieb.tumblr.com/post/201162993/likeit-i-shared-this-on-google-ive-emailed"&gt;misseffieb&lt;/a&gt;&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/214540093</link><guid>http://boblet.tumblr.com/post/214540093</guid><pubDate>Fri, 16 Oct 2009 17:24:12 +0900</pubDate><category>torture</category><category>water-boarding</category><category>suffering</category><category>pain</category><category>fubar</category><category>USA</category></item><item><title>Block-level links, HTML5 and Firefox</title><description>&lt;p&gt;Recently I’ve been experimenting with wrapping block-level elements in &lt;code&gt;&lt;a&gt;&lt;/code&gt; (so-called &lt;em&gt;block-level links&lt;/em&gt;), as you can see in this page’s header. This has several benefits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;several elements can of course be linked at once, such as an image and it’s caption—historically we’d need to link both the image and caption text individually&lt;/li&gt;
&lt;li&gt;Internet Explorer 6 doesn’t allow CSS &lt;code&gt;:hover&lt;/code&gt; etc effects on anything other than &lt;code&gt;&lt;a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;making block-level elements into links increases the clickable area&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Changing &lt;code&gt;&lt;a&gt;&lt;/code&gt; from an inline element to something like &lt;code&gt;&lt;del&gt;&lt;/code&gt; that can appear pretty much anywhere is fine in the spec, but what about browser support? Luckily, this behaviour is already unofficially supported in current browsers. However I recently discovered a bug in Firefox; if the block-level link contains any of the new HTML5 semantic elements bizarre stuff happens (&lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=514122"&gt;Bugzilla: #514122&lt;/a&gt;, &lt;a href="http://oli-studio.com/bugs/mozilla/block-level-links.html" title="Firefox closes block-level links when encountering HTML5 elements"&gt;test case&lt;/a&gt;):&lt;/p&gt;

&lt;h3&gt;Code sample&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;&lt;div&gt;
  &lt;a href="/"&gt;
  &lt;hgroup&gt;
    &lt;h1&gt;Title&lt;/h1&gt;
    &lt;h2&gt;Subtitle&lt;/h2&gt;
  &lt;/hgroup&gt;
  &lt;/a&gt;
&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;In Firefox (DOM asplode)&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;&lt;div&gt;
  &lt;a href="/"&gt;
  &lt;hgroup&gt;
    &lt;/hgroup&gt;&lt;/a&gt;&lt;h1&gt;&lt;a _moz-rs-heading="" href="/"&gt;Title&lt;/a&gt;&lt;/h1&gt;
&lt;a href="/"&gt;    &lt;h2&gt;Subtitle&lt;/h2&gt;
  
  &lt;/a&gt;
&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;While the contained content is still linked, the HTML5 element is prematurely closed, the link becomes inline for the first element following the HTML5 element, and everything after that is wrapped in a new link. Kind of defeats the purpose huh. This is especially important for &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt;, a new HTML5 element that’s going to be block-linked a &lt;em&gt;lot&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Luckily, there is an easy solution; &lt;strong&gt;add a &lt;code&gt;&lt;div&gt;&lt;/code&gt; wrapper&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;Code sample with wrapper &lt;code&gt;&lt;div&gt;&lt;/code&gt;
&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;&lt;div&gt;
  &lt;a href="/"&gt;
    &lt;div&gt;
      &lt;hgroup&gt;
        &lt;h1&gt;Title&lt;/h1&gt;
        &lt;h2&gt;Subtitle&lt;/h2&gt;
      &lt;/hgroup&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;In Firefox (all is right in the DOM)&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;&lt;div&gt;
  &lt;a href="/"&gt;
    &lt;div&gt;
      &lt;hgroup&gt;
        &lt;h1&gt;Title&lt;/h1&gt;
        &lt;h2&gt;Subtitle&lt;/h2&gt;
      &lt;/hgroup&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Wow that was easy! Lucky it wasn’t an IE bug huh ;-) There are some other things to watch out for too. Link styles don’t inherit to block-level elements, so you need to explicitly declare them on the contained elements, or use eg &lt;code&gt;{background: inherit;}&lt;/code&gt;. This also includes the browser default &lt;code&gt;{text-decoration: underline;}&lt;/code&gt; (in Safari browser link styles are applied, but user link styles also need to be declared). Finally, Firefox handles tag mismatch errors in block-level links … poorly. When in doubt, validate.&lt;/p&gt;
&lt;p&gt;So in conclusion, if your block-level links contain HTML5 structural elements, add a wrapper &lt;code&gt;&lt;div&gt;&lt;/code&gt;. If you have any questions, feedback, or have found a mistake, please &lt;a href="http://twitter.com/home?status=%40boblet%20re%3A%20http%3A%2F%2Fbit.ly%2FUE3gg%20" title="via the Twitter homepage"&gt;let me know via Twitter&lt;/a&gt; (&lt;a href="http://twitter.com/boblet"&gt;@boblet)&lt;/a&gt;…&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/178852468</link><guid>http://boblet.tumblr.com/post/178852468</guid><pubDate>Fri, 04 Sep 2009 00:42:00 +0900</pubDate><category>html5</category><category>firefox</category><category>block level links</category></item><item><title>That Mitchell and Webb Look: Homeopathic A&amp;E (via...</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/HMGIbOGu8q0&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/HMGIbOGu8q0&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;blockquote&gt;&lt;p&gt;That Mitchell and Webb Look: Homeopathic A&amp;E (via &lt;a href="http://youtube.com/user/gudbuytjane"&gt;gudbuytjane&lt;/a&gt;)&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Via &lt;a href="http://adactio.tumblr.com/post/172337971/that-mitchell-and-webb-look-homeopathic-a-e-via"&gt;adactio&lt;/a&gt;&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/173943964</link><guid>http://boblet.tumblr.com/post/173943964</guid><pubDate>Sat, 29 Aug 2009 00:47:52 +0900</pubDate><category>movie</category><category>homeopathy</category></item><item><title>Mameshiba #7

tehehe</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/p-E-8RXRG1M&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/p-E-8RXRG1M&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;h2&gt;Mameshiba #7&lt;/h2&gt;

&lt;p&gt;tehehe&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/173916521</link><guid>http://boblet.tumblr.com/post/173916521</guid><pubDate>Sat, 29 Aug 2009 00:11:21 +0900</pubDate></item><item><title>Bobby McFerrin Demonstrates the Power of the Pentatonic...</title><description>&lt;object type="application/x-shockwave-flash" width="400" height="300" data="http://vimeo.com/moogaloop.swf?clip_id=5732745&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF"&gt;&lt;param name="quality" value="best" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="scale" value="showAll" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5732745&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF" /&gt;&lt;embed src="http://www.vimeo.com/moogaloop.swf?clip_id=5732745&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;hgroup&gt;&lt;h2&gt;&lt;a href="http://vimeo.com/5732745"&gt;Bobby McFerrin Demonstrates the Power of the Pentatonic Scale&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;from &lt;a href="http://www.worldsciencefestival.com/"&gt;World Science Festival&lt;/a&gt;
&lt;/h3&gt;
&lt;/hgroup&gt;&lt;blockquote&gt;&lt;p&gt;Bobby McFerrin demonstrates the power of the pentatonic scale, using audience participation, at the event “Notes &amp; Neurons: In Search of the Common Chorus”, from the 2009 World Science Festival, June 12, 2009.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Wow&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/153484618</link><guid>http://boblet.tumblr.com/post/153484618</guid><pubDate>Sat, 01 Aug 2009 15:52:08 +0900</pubDate><category>movie</category><category>music</category><category>performance</category><category>Bobby McFerrin</category></item><item><title>“Simon’s Cat ‘Fly Guy’ (via simonscat)”

I’m sure all cat owners...</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/I1qHVVbYG8Y&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/I1qHVVbYG8Y&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;h2&gt;“Simon’s Cat ‘Fly Guy’ (via &lt;a href="http://youtube.com/user/simonscat"&gt;simonscat&lt;/a&gt;)”&lt;/h2&gt;

&lt;p&gt;I’m sure all cat owners can attest to the truth of this. Via &lt;a href="http://adactio.tumblr.com/post/150922472/simons-cat-fly-guy-via-simonscat"&gt;adactio&lt;/a&gt;&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/150936692</link><guid>http://boblet.tumblr.com/post/150936692</guid><pubDate>Wed, 29 Jul 2009 01:32:00 +0900</pubDate><category>humor</category><category>video</category><category>cat</category></item><item><title>"Again I say: mammals and dinosaurs. Simon, along with everyone else who thinks online subscription..."</title><description>“Again I say: mammals and dinosaurs. Simon, along with everyone else who thinks online subscription fees can save the newspaper industry, is effectively arguing that the world will change to support newspapers. The truth is that newspapers must change to adapt to the world. Just because the extinction of newspapers would be a tragic loss doesn’t mean it won’t happen.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;h2&gt;“&lt;a href="http://daringfireball.net/2009/07/pay_walls"&gt;Pay Walls&lt;/a&gt;”, by John Gruber&lt;/h2&gt;&lt;/em&gt;</description><link>http://boblet.tumblr.com/post/148750738</link><guid>http://boblet.tumblr.com/post/148750738</guid><pubDate>Sat, 25 Jul 2009 15:39:00 +0900</pubDate><category>newspaper</category><category>internet</category><category>fight</category></item><item><title>“Masters”—The Vanderbilt Republic Foundation

Promo for a...</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/5y1sdfk6DFs&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/5y1sdfk6DFs&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;h2&gt;&lt;a href="http://vanderbiltrepublic.org/"&gt;“Masters”—The Vanderbilt Republic Foundation&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;Promo for a collaborative documentary and photography project on the surviving master performers of Cambodia’s traditional arts, 90% of whom were killed under Pol Pot’s regime. Produced by Cambodian Living Arts and the Vanderbilt Republic Foundation.&lt;/p&gt;

&lt;p&gt;&lt;a href="2http://daringfireball.net/linked/2009/07/22/vanderbilt-republic-foundation%22"&gt;&lt;em&gt;Via Daring Fireball&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/147372577</link><guid>http://boblet.tumblr.com/post/147372577</guid><pubDate>Thu, 23 Jul 2009 16:04:00 +0900</pubDate><category>movie</category><category>art</category><category>photography</category><category>cambodia</category></item><item><title>12 common problems with HTML 5</title><description>&lt;div id="html5-articles" class="nav"&gt;
&lt;h3&gt;Other HTML 5 articles&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/60552152/html5" title="HTML5 id/class name cheatsheet・@boblet | random notes"&gt;HTML 5 id/class name cheatsheet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;HTML 5 structure…
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/130610820/html5-structure1" title="HTML5 structurediv, section &amp; article・@boblet | random notes"&gt;div, section &amp; article&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2" title="HTML5 structureheader, hgroup &amp; h1-h6・@boblet | random notes"&gt;header, hgroup &amp; h1-h6&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3" title="HTML5 structurenav, aside, figure, &amp; footer・@boblet | random notes"&gt;nav, aside, figure, &amp; footer&lt;/a&gt; (plus outlines)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4" title="HTML5 structureHTML4 and XHTML1 to HTML5・@boblet | random notes"&gt;HTML 4 and XHTML 1 to HTML 5&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://bit.ly/EgVcc" title="12 common problems with HTML 5 ・ @boblet | random notes"&gt;12 common problems with HTML 5&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;div class="group"&gt;
&lt;div id="in-page" class="nav"&gt;
&lt;h3&gt;In-page navigation&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="#browser-support"&gt;Browsers don’t support HTML 5&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#ie-support"&gt;IE doesn’t support HTML 5&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#is-html5-ready-yet"&gt;HTML 5 won’t be ready until 2022!?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#xhtml2-doa"&gt;You mean XHTML isn’t the future!?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#incremental"&gt;Now I have to relearn EVERYTHING!?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#author-spec"&gt;The HTML 5 spec isn’t understandable/is overly complex&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#tag-soup"&gt;HTML 5 means back to tag soup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#all-caps"&gt;HTML 5 means ALL-CAPS element names&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#xhtml-style"&gt;But I &lt;em&gt;like&lt;/em&gt; XHTML-style closing slashes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#presentational-elements"&gt;HTML 5 contains presentational elements&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#purity"&gt;HTML 5 isn’t as strict/pure/semantic as XHTML 1.x&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#gross"&gt;HTML 5 is only what ‘Supreme Dictator for Life’ Ian Hickson deigns to accept&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;

&lt;p&gt;Recently I’ve been reading a lot of articles on HTML 5 (such as on &lt;a href="http://www.zeldman.com/" title="Jeffrey Zeldman Presents The Daily Report"&gt;Zeldman.com&lt;/a&gt; and &lt;a href="http://html5doctor.com/" title="HTML5 Doctor, helping you implement HTML 5 today"&gt;HTML 5 Doctor&lt;/a&gt;), and have seen a few reoccurring false perceptions in the comments. While some may seem funny for those following HTML 5’s progress closely, a lot of people &lt;em&gt;aren’t&lt;/em&gt;, nor can they be expected to.&lt;/p&gt;
&lt;p&gt;So in addition to the &lt;a href="http://wiki.whatwg.org/wiki/FAQ" title="FAQ - WHATWG Wiki"&gt;WhatWG FAQ&lt;/a&gt;, here are some common misunderstandings (and their explanations), written at a less technical level. My apologies for any overuse of the &lt;a href="http://en.wikipedia.org/wiki/Interrobang" title="Interrobang - Wikipedia, the free encyclopedia"&gt;interrobang&lt;/a&gt; :)&lt;/p&gt;
&lt;/div&gt;
&lt;ol id="html5-faq"&gt;
&lt;li id="browser-support"&gt;
&lt;h3 class="permalink"&gt;&lt;a href="#browser-support"&gt;Browsers don’t support HTML 5&lt;strong&gt; #&lt;/strong&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;While a lot of the new stuff in HTML 5 isn’t widely supported, it’s important to remember &lt;a href="http://www.w3.org/TR/html-design-principles/#compatibility" title="HTML Design Principles"&gt;one of HTML 5’s core principles is compatibility&lt;/a&gt;, eg with current content. &lt;a href="http://dev.w3.org/html5/html4-differences/" title="HTML 5 differences from HTML 4"&gt;Apart from a few minor differences&lt;/a&gt; most of the HTML 4/XHTML 1 spec is in HTML 5. For the new parts of HTML 5 (such as structural elements) &lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#browser-support" title="HTML 5 structureHTML 4 and XHTML 1 to HTML 5 ・ @boblet | random notes"&gt;support can often be added today via CSS and Javascript&lt;/a&gt;. Finally, &lt;a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML_5)" title="Comparison of layout engines (HTML 5) - Wikipedia, the free encyclopedia"&gt;modern browsers (and even IE) are implementing the HTML 5 spec&lt;/a&gt; now. While full compliance will take a while, there’s a lot that’s already usable, and support is increasing.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ref:&lt;/em&gt; &lt;a href="http://wiki.whatwg.org/wiki/FAQ#When_will_we_be_able_to_start_using_these_new_features.3F" title="FAQ - WHATWG Wiki"&gt;When will we be able to start using these new features?&lt;/a&gt;—WhatWG FAQ&lt;/p&gt;
&lt;/li&gt;
&lt;li id="ie-support"&gt;
&lt;h3&gt;IE doesn’t support HTML 5&lt;/h3&gt;
&lt;p&gt;Internet Explorer is something of a … rugged individualist, resisting ‘trends’ (like standards support) and doing things it’s own way (cough .EOT cough) ;-). However as stated above because &lt;em&gt;HTML 5 is mainly a well-defined HTML 4/XHTML 1 with sprinkles&lt;/em&gt;, all of the ‘old stuff’ still works. Unfortunately due to bugs, &lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#browser-support" title="HTML 5 structureHTML 4 and XHTML 1 to HTML 5 ・ @boblet | random notes"&gt;IE currently requires a Javascript hack to use new HTML 5 structural elements&lt;/a&gt;. For other new parts of the spec, Microsoft has been largely silent, but the IE team has already implemented &lt;a href="http://www.w3.org/TR/cors/" title="Cross-Origin Resource Sharing"&gt;Cross-origin resource sharing&lt;/a&gt; and &lt;a href="http://dev.w3.org/html5/webstorage/" title="Web Storage"&gt;Web storage&lt;/a&gt; in IE8 (&lt;a href="http://blogs.msdn.com/ie/archive/2008/10/06/updates-for-ajax-in-ie8-beta-2.aspx" title="IEBlog : Updates for AJAX in IE8 Beta 2"&gt;IE Team blog&lt;/a&gt;), which were both parts of HTML 5 (and have been subsequently released as stand-alone specs). We can only hope that &lt;a href="http://blogs.msdn.com/ie/archive/2009/01/29/overview-of-platform-improvements-in-ie8-rc1.aspx" title="IEBlog : Overview of Platform Improvements in IE8 RC1"&gt;their well-deserved pride in implementing CSS2.1 completely&lt;/a&gt; carries over to HTML 5 and other specs.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ref:&lt;/em&gt; &lt;a href="http://wiki.whatwg.org/wiki/FAQ#What_about_Microsoft_and_Internet_Explorer.3F" title="FAQ - WHATWG Wiki"&gt;What about Microsoft and Internet Explorer?&lt;/a&gt;—WhatWG FAQ&lt;/p&gt;
&lt;/li&gt;
&lt;li id="is-html5-ready-yet"&gt;
&lt;h3&gt;HTML 5 won’t be ready until 2022!?&lt;/h3&gt;
&lt;p&gt;While &lt;a href="http://jeffcroft.com/links/2008/sep/11/html5-to-be-quotdonequot-in-2022-this-is-not-a-joke/"&gt;this statement makes for good WTF-style headlines&lt;/a&gt;, it’s just not true. &lt;a href="http://html5doctor.com/2022-or-when-will-html-5-be-ready/" title="2022, or when will HTML 5 be ready? | HTML5 Doctor"&gt;The 2022 date is for &lt;em&gt;two complete implementations&lt;/em&gt;&lt;/a&gt;, something that has still not happened for HTML 4, XHTML 1.0 or XHTML 1.1. The dates to worry about are 2012 for a completed draft, and &lt;em&gt;October 2009 for a working draft&lt;/em&gt;. That’s three months away yo! Also as stated above, browser makers are already implementing some of the new parts of HTML 5, and the rest is backwards compatible.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ref:&lt;/em&gt; &lt;a href="http://wiki.whatwg.org/wiki/FAQ#When_will_HTML_5_be_finished.3F" title="FAQ - WHATWG Wiki"&gt;When will HTML 5 be finished?&lt;/a&gt; and &lt;a href="http://wiki.whatwg.org/wiki/FAQ#When_will_we_be_able_to_start_using_these_new_features.3F" title="FAQ - WHATWG Wiki"&gt;When will we be able to start using these new features?&lt;/a&gt;—WhatWG FAQ, and for fun &lt;a href="http://ishtml5readyyet.com/" title="IS HTML5 READY YET?"&gt;Is HTML 5 Ready Yet?&lt;/a&gt; and &lt;a href="http://ishtml5ready.com/"&gt;Is HTML 5 Ready?&lt;/a&gt; ;-)&lt;/p&gt;
&lt;/li&gt;
&lt;li id="xhtml2-doa"&gt;
&lt;h3&gt;You mean XHTML isn’t the future!?&lt;/h3&gt;
&lt;p&gt;No, it’s the present. &lt;a href="http://www.zeldman.com/2009/07/07/in-defense-of-web-developers/" title="In defense of web developers  –   Jeffrey Zeldman Presents The Daily Report"&gt;XHTML2 may be dead&lt;/a&gt;, but nothing will stop the millions of current XHTML 1.x pages (and any you create in the future) from working. However this probably means it’s a Good Idea™ to &lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#why-html5" title="HTML 5 structureHTML 4 and XHTML 1 to HTML 5 ・ @boblet | random notes"&gt;find out more about HTML 5&lt;/a&gt; at some stage ;-)&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ref:&lt;/em&gt; &lt;a href="http://wiki.whatwg.org/wiki/HTML_vs._XHTML#Parsing" title="HTML vs. XHTML - WHATWG Wiki"&gt;Differences Between HTML and XHTML; Parsing&lt;/a&gt;—WhatWG FAQ&lt;/p&gt;
&lt;/li&gt;
&lt;li id="incremental"&gt;
&lt;h3&gt;Now I have to relearn EVERYTHING!?&lt;/h3&gt;
&lt;p&gt;Since HTML 5 is mainly a well-defined HTML 4/XHTML 1, and because both HTML- and XHTML-style syntax is allowed, you need to do very little (maybe only a &lt;code&gt;doctype&lt;/code&gt; change) to change current well-made pages into HTML 5. While there are certainly new things to learn, we all like learning, right?&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ref:&lt;/em&gt; &lt;a href="http://dev.w3.org/html5/html4-differences/" title="HTML 5 differences from HTML 4"&gt;HTML 5 differences from HTML 4&lt;/a&gt;—W3C Working Draft&lt;/p&gt;
&lt;/li&gt;
&lt;li id="author-spec"&gt;
&lt;h3&gt;The HTML 5 spec isn’t understandable/is overly complex&lt;/h3&gt;
&lt;p&gt;The HTML 5 spec is being written primarily for ‘implementors’—programmers who make web browsers and other tools to use the web. Unlike previous specifications, HTML 5 is defining processing steps and error handling explicitly, which can be a little overwhelming if you’re not a browser programmer :) Luckily a majority of the spec is actually just the HTML 4/XHTML 1 you already know.&lt;/p&gt;
&lt;p&gt;Also, there are already many useful articles and resources for author information on HTML 5, such as &lt;a href="http://www.alistapart.com/articles/previewofhtml5" title="A List Apart: Articles: A Preview of HTML 5"&gt;“A Preview of HTML 5” by Lachlan Hunt&lt;/a&gt; on A List Apart, &lt;a href="http://dev.w3.org/html5/html-author/" title="HTML 5 Reference"&gt;“HTML 5 Reference” by Lachlan Hunt&lt;/a&gt; (a version of the spec specifically for authors) on w3.org, &lt;a href="http://dev.w3.org/html5/markup/" title="HTML 5: The Markup Language"&gt;“HTML 5: The Markup Language” by Mike™ Smith&lt;/a&gt; (a pared down spec that removes implementor details) on w3.org, and sites like &lt;a href="http://html5doctor.com/" title="HTML5 Doctor, helping you implement HTML 5 today"&gt;HTML 5 Doctor&lt;/a&gt;. You can also check out &lt;a href="#html5-articles"&gt;my humble HTML 5 articles&lt;/a&gt; :)&lt;/p&gt;
&lt;/li&gt;
&lt;li id="tag-soup"&gt;
&lt;h3&gt;HTML 5 means back to tag soup&lt;/h3&gt;
&lt;p&gt;While the XML strictness in XHTML 1.0 and 1.1 certainly encouraged a move away from the bad old ways of the past, there’s nothing in HTML 5 (or HTML 4 either) that stops you from adding closing elements, correctly nesting elements, using elements appropriately, and generally making good code. HTML 5 is forgiving of mistakes, but you don’t have to make them :) Current HTML 5 validators are also already good (&lt;a href="http://validator.w3.org/" title="The W3C Markup Validation Service"&gt;W3C&lt;/a&gt;, &lt;a href="http://validator.nu/" title="Validator.nu"&gt;Validator.nu&lt;/a&gt;), and there is even talk of making a user-selectable ‘strict validator mode’, so if you want to write good code there’s nothing to stop you.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ref:&lt;/em&gt; &lt;a href="http://wiki.whatwg.org/wiki/FAQ#Why_does_HTML5_legitimise_tag_soup.3F" title="FAQ - WHATWG Wiki"&gt;Why does HTML5 legitimise tag soup?&lt;/a&gt;—WhatWG FAQ&lt;/p&gt;
&lt;/li&gt;
&lt;li id="all-caps"&gt;
&lt;h3&gt;HTML 5 means ALL-CAPS element names&lt;/h3&gt;
&lt;p&gt;HTML 5 is case-insensitive; both upper- and lower-case elements are permitted, even &lt;code&gt;&lt;!doctype html&gt;&lt;/code&gt; ;-) Note that &lt;a href="http://wiki.whatwg.org/wiki/FAQ#What_will_the_DOCTYPE_be.3F" title="FAQ - WHATWG Wiki"&gt;&lt;code&gt;&lt;!DOCTYPE html&gt;&lt;/code&gt; is recommended&lt;/a&gt; just in case you ever need to use it in XHTML (which &lt;em&gt;is&lt;/em&gt; case-sensitive).&lt;/p&gt;
&lt;/li&gt;
&lt;li id="xhtml-style"&gt;
&lt;h3&gt;But I &lt;em&gt;like&lt;/em&gt; XHTML-style closing slashes&lt;/h3&gt;
&lt;p&gt;No one will take them away from you! XHTML-style closing slashes on empty elements are valid HTML 5, so &lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#xhtml-style" title="HTML 5 structureHTML 4 and XHTML 1 to HTML 5 ・ @boblet | random notes"&gt;you can write either HTML-style or XHTML-style HTML 5&lt;/a&gt; (although it’d be best to consciously choose one and stick to it).&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ref:&lt;/em&gt; &lt;a href="http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_elements_with_.2F.3E_or_.3E.3F" title="FAQ - WHATWG Wiki"&gt;Should I close empty elements with /&gt; or &gt;?&lt;/a&gt;—WhatWG FAQ&lt;/p&gt;
&lt;/li&gt;
&lt;li id="presentational-elements"&gt;
&lt;h3&gt;HTML 5 contains presentational elements&lt;/h3&gt;
&lt;p&gt;Some ‘presentational’ elements such as &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-small-element" title="4.6 Text-level semantics  HTML 5"&gt;&lt;code&gt;&lt;small&gt;&lt;/code&gt;&lt;/a&gt; and &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-i-element" title="4.6 Text-level semantics  HTML 5"&gt;&lt;code&gt;&lt;i&gt;&lt;/code&gt;&lt;/a&gt; from HTML 4 have been retained. This is because they now have defined semantic meaning—legalese (‘small print’) and &lt;q cite="http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-i-element"&gt;a span of text in an alternate voice or mood&lt;/q&gt;, like a word from another language, respectively.&lt;/p&gt;
&lt;p&gt;A few of the new structural elements such as &lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3" title="HTML5 structurenav, aside, figure, &amp; footer ・ @boblet | random notes"&gt;&lt;code&gt;&lt;aside&gt;&lt;/code&gt; and &lt;code&gt;&lt;footer&gt;&lt;/code&gt;&lt;/a&gt; can also be perceived as presentational, however the use of these elements should be dictated by their content and &lt;em&gt;not&lt;/em&gt; their placement.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ref:&lt;/em&gt; &lt;a href="http://wiki.whatwg.org/wiki/FAQ#Why_are_some_presentational_elements_like_.3Cb.3E.2C_.3Ci.3E_and_.3Csmall.3E_still_included.3F" title="FAQ - WHATWG Wiki"&gt;Why are some presentational elements like &lt;code&gt;&lt;b&gt;&lt;/code&gt;, &lt;code&gt;&lt;i&gt;&lt;/code&gt; and &lt;code&gt;&lt;small&gt;&lt;/code&gt; still included?&lt;/a&gt;—WhatWG FAQ&lt;/p&gt;
&lt;/li&gt;
&lt;li id="purity"&gt;
&lt;h3&gt;HTML 5 isn’t as strict/pure/semantic as XHTML 1.x&lt;/h3&gt;
&lt;p&gt;Also &lt;em&gt;“HTML validators aren’t as strict as the XHTML validator”&lt;/em&gt;. While HTML 5 is more forgiving of mistakes than XHTML sent with a XML mime type, almost everyone used the &lt;code&gt;text/html&lt;/code&gt; mime type, and in that case XHTML was treated as strictly as HTML 4 (or HTML 5) by browsers. HTML 5 actually defines element semantics more precisely than XHTML 1, and adds new semantic meanings (for &lt;code&gt;&lt;small&gt;&lt;/code&gt;, &lt;code&gt;&lt;i&gt;&lt;/code&gt; etc) and elements (&lt;code&gt;&lt;article&gt;&lt;/code&gt;, &lt;code&gt;&lt;nav&gt;&lt;/code&gt; etc). HTML 5 is also much more precisely defined, enabling better conformance checkers to be created, and current HTML 5 validators (&lt;a href="http://validator.w3.org/" title="The W3C Markup Validation Service"&gt;W3C&lt;/a&gt;, &lt;a href="http://validator.nu/" title="Validator.nu"&gt;Validator.nu&lt;/a&gt;) actually seem to be a little stricter than the XHTML 1 validator.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ref:&lt;/em&gt; &lt;a href="http://wiki.whatwg.org/wiki/HTML_vs._XHTML#Differences_Between_HTML_and_XHTML" title="HTML vs. XHTML - WHATWG Wiki"&gt;the differences between HTML and XHTML&lt;/a&gt;—WhatWG FAQ&lt;/p&gt;
&lt;/li&gt;
&lt;li id="gross"&gt;
&lt;h3&gt;HTML 5 is only what ‘Supreme Dictator for Life’ &lt;a href="http://ln.hixie.ch/" title="Hixie's Natural Log"&gt;Ian Hickson&lt;/a&gt; deigns to accept&lt;/h3&gt;
&lt;p&gt;The &lt;a href="http://www.whatwg.org/" title="Web Hypertext Application Technology Working Group"&gt;WhatWG&lt;/a&gt; and the &lt;a href="http://www.w3.org/html/wg/" title="W3C HTML Working Group"&gt;W3C HTML 5 working group&lt;/a&gt; are &lt;a href="http://wiki.whatwg.org/wiki/FAQ#The_WHATWG_Process" title="FAQ - WHATWG Wiki"&gt;using a different process&lt;/a&gt; to most other W3 projects—rather than the traditional ‘black box’ approach they accept input from anyone willing to give it, and decisions are not reached via consensus member voting. While this may seem to some like Hixie is basically playing god, he is actually working hard to base the spec on reality and achieve consensus with implementors, as they have the final say on what is implemented. So actually it would be more accurate to say &lt;a href="http://daringfireball.net/linked/2009/05/26/hickson" title="Daring Fireball Linked List: Bruce Lawson Interviews Ian Hickson, Editor of the HTML 5 Specification"&gt;HTML 5 is what the browser makers accept&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Despite the exclusionary image some have, Hixie and other WhatWG &amp; W3 HTML WG members read through and respond to a massive amount of feedback, via the &lt;a href="http://www.whatwg.org/mailing-list" title="Web Hypertext Application Technology Working Group Mailing List"&gt;WhatWG email list&lt;/a&gt; and &lt;a href="http://lists.w3.org/Archives/Public/public-html/" title="public-html@w3.org Mail Archives"&gt;W3 HTML email list&lt;/a&gt;, &lt;a href="http://wiki.whatwg.org/wiki/IRC" title="IRC - WHATWG Wiki"&gt;IRC&lt;/a&gt;, the &lt;a href="http://www.w3.org/Bugs/Public/buglist.cgi?quicksearch=ALL+product:HTML+-status:CLOSED" title="Bug List"&gt;bug tracker&lt;/a&gt;, and even weblog comments. In my experience they have been open to (and frequently requested) improvements. If you have some feedback, &lt;em&gt;by all means&lt;/em&gt; engage with the HTML 5 community (preferably after having &lt;a href="http://wiki.whatwg.org/wiki/FAQ" title="FAQ - WHATWG Wiki"&gt;checked the official FAQ&lt;/a&gt;), giving examples of real-world usage and the pros and cons for your idea. If something is confusing ask for more information in a mailing list, or even better in IRC.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ref:&lt;/em&gt; &lt;a href="http://www.whatwg.org/" title="Web Hypertext Application Technology Working Group"&gt;WhatWG&lt;/a&gt; and &lt;a href="http://www.w3.org/html/wg/" title="W3C HTML Working Group"&gt;W3C HTML Working Group&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I hope that was of use. If you have any questions, feedback, or have found a mistake, please &lt;a href="http://twitter.com/home?status=%40boblet%20re%3A%20http%3A%2F%2Fbit.ly%2FEgVcc%20" title="via the Twitter homepage"&gt;let me know via Twitter&lt;/a&gt; (&lt;a href="http://twitter.com/boblet"&gt;@boblet)&lt;/a&gt;…&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/147230293</link><guid>http://boblet.tumblr.com/post/147230293</guid><pubDate>Thu, 23 Jul 2009 11:52:00 +0900</pubDate><category>html5</category><category>html4</category><category>xhtml1</category><category>w3</category><category>whatwg</category><category>html</category><category>semantics</category><category>problem</category><category>misunderstanding</category><category>faq</category></item><item><title>HTML 5 structure—HTML 4 and XHTML 1 to HTML 5</title><description>&lt;div id="html-switcher" class="aside"&gt;&lt;/div&gt;

&lt;div id="html5-articles" class="nav"&gt;
&lt;h3&gt;Other HTML 5 articles&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/60552152/html5" title="HTML5 id/class name cheatsheet・@boblet | random notes"&gt;HTML 5 id/class name cheatsheet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;HTML 5 structure…
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/130610820/html5-structure1" title="HTML5 structurediv, section &amp; article・@boblet | random notes"&gt;div, section &amp; article&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2" title="HTML5 structureheader, hgroup &amp; h1-h6・@boblet | random notes"&gt;header, hgroup &amp; h1-h6&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3" title="HTML5 structurenav, aside, figure, &amp; footer・@boblet | random notes"&gt;nav, aside, figure, &amp; footer&lt;/a&gt; (plus outlines)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4" title="HTML5 structureHTML4 and XHTML1 to HTML5・@boblet | random notes"&gt;HTML 4 and XHTML 1 to HTML 5&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://bit.ly/EgVcc" title="12 common problems with HTML 5 ・ @boblet | random notes"&gt;12 common problems with HTML 5&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;p&gt;We’ve covered a lot of ground so far. To recap, HTML5 has several new block-level sectioning elements that we can use to give relevant parts of web pages more semantic meaning. These new elements are for ‘chunks of related content’—basically a logical section of the document:&lt;/p&gt;

&lt;h3 id="sectioning-elements-overview"&gt;New sectioning elements in a nutshell&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://boblet.tumblr.com/post/130610820/html5-structure1#element-section"&gt;&lt;code&gt;&lt;section&gt;&lt;/code&gt;&lt;/a&gt;—a chunk of related content&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://boblet.tumblr.com/post/130610820/html5-structure1#element-article"&gt;&lt;code&gt;&lt;article&gt;&lt;/code&gt;&lt;/a&gt;—an independent, self-contained chunk of related content, that still &lt;em&gt;makes sense on it’s own&lt;/em&gt;&lt;ins datetime="2009-09-16T11:38:59+09:00"&gt; (eg in an RSS feed)&lt;/ins&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3#element-aside"&gt;&lt;code&gt;&lt;aside&gt;&lt;/code&gt;&lt;/a&gt;—a chunk of content that is tangentially related to the content that surrounds it, but isn’t essential to understanding that content&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3#element-nav"&gt;&lt;code&gt;&lt;nav&gt;&lt;/code&gt;&lt;/a&gt;—navigation for the site or page&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-09-16T11:09:01+09:00"&gt;(&lt;acronym title="compare with"&gt;cf&lt;/acronym&gt;. &lt;a href="http://boblet.tumblr.com/post/130610820/html5-structure1#element-div" title="HTML5 structurediv, section &amp; article ・ @boblet"&gt;&lt;code&gt;&lt;div&gt;&lt;/code&gt;&lt;/a&gt;—a chunk of content &lt;em&gt;with no additional semantics&lt;/em&gt;, eg for CSS styling hooks)&lt;/ins&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With very few exceptions (generally in web applications) &lt;strong&gt;these new sectioning elements should have a title&lt;/strong&gt;, possibly in a &lt;code&gt;&lt;header&gt;&lt;/code&gt; element with any other introductory information. We can use this as a rule of thumb for deciding between &lt;code&gt;&lt;section&gt;&lt;/code&gt; and &lt;code&gt;&lt;div&gt;&lt;/code&gt;:&lt;/p&gt;

&lt;blockquote cite="http://html5doctor.com/the-section-element/comment-page-1/#comment-970"&gt;&lt;p&gt;consciously add a title for each &lt;code&gt;&lt;section&gt;&lt;/code&gt;, even if you then hide the title with CSS (as is generally the case with nav for accessibility). If it seems like content that shouldn’t have a title when CSS is disabled, then it’s most probably not a &lt;code&gt;&lt;section&gt;&lt;/code&gt; &lt;i&gt;(&lt;a href="http://html5doctor.com/the-section-element/comment-page-1/#comment-970" title="The section element | HTML5 Doctor"&gt;HTML5Doctor; The Section Element&lt;/a&gt;)&lt;/i&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The new sectioning elements can also contain one or more &lt;code&gt;&lt;footer&gt;&lt;/code&gt; elements with additional information, such as author (&lt;code&gt;&lt;address&gt;&lt;/code&gt;) or copyright (&lt;code&gt;&lt;small&gt;&lt;/code&gt;) info, related links etc. It’s important to note that &lt;code&gt;&lt;header&gt;&lt;/code&gt; and &lt;code&gt;&lt;footer&gt;&lt;/code&gt; (&amp; &lt;code&gt;&lt;address&gt;&lt;/code&gt;) apply to the sectioning element they’re in (this is &lt;code&gt;&lt;body&gt;&lt;/code&gt; for a page header or footer). &lt;code&gt;&lt;header&gt;&lt;/code&gt; and &lt;code&gt;&lt;footer&gt;&lt;/code&gt; can’t contain other &lt;code&gt;&lt;header&gt;&lt;/code&gt;s and &lt;code&gt;&lt;footer&gt;&lt;/code&gt;s.&lt;/p&gt;

&lt;p&gt;Finally, while the words “header”, “footer” and “aside” all come with preconceptions, &lt;strong&gt;their semantic meaning comes from the types of content they contain&lt;/strong&gt;, &lt;em&gt;not&lt;/em&gt; from their presentation or relative placement. For example, &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#footnotes" title="4.11.4 Commands  HTML5"&gt;&lt;code&gt;&lt;aside&gt;&lt;/code&gt; could contain a footnote&lt;/a&gt;, and a &lt;code&gt;&lt;footer&gt;&lt;/code&gt; containing a ‘Top of Page’ link could appear at both the top and bottom of a section.&lt;/p&gt;

&lt;p&gt;Now let’s look at example structures for a basic article page; using the standard layout of a page header (with logo etc), navigation tabs, a main column, a side column, and a page footer.&lt;/p&gt;

&lt;h3 id="article-page"&gt;
&lt;del datetime="2009-07-22T11:30:00+09:00"&gt;Article Page&lt;/del&gt;&lt;ins datetime="2009-07-22T11:30:00+09:00"&gt;Converting a simple page to HTML 5&lt;/ins&gt;&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#article-page"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;p&gt;Here’s the outline of the parts of our page:&lt;/p&gt;

&lt;div class="group"&gt;
&lt;div id="article-page-layout" class="aside img"&gt;
&lt;img src="http://oli-studio.com/html5/structure/article-page-layout.png" width="309" height="341" alt="Article Page Layout"/&gt;
&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Page header (site name, logo, search…)&lt;/li&gt;
&lt;li&gt;Main navigation&lt;/li&gt;
&lt;li&gt;Main content (wrapper)
&lt;ul&gt;
&lt;li&gt;Article (main column)
&lt;ul&gt;
&lt;li&gt;Article title&lt;/li&gt;
&lt;li&gt;Article metadata&lt;/li&gt;
&lt;li&gt;Article content…&lt;/li&gt;
&lt;li&gt;Article footer&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Sidebar
&lt;ul&gt;
&lt;li&gt;Sidebar title&lt;/li&gt;
&lt;li&gt;Sidebar content…&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Page Footer&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;p class="html"&gt;So let’s write that in standard &lt;acronym title="plain old semantic HTML"&gt;POSH&lt;/acronym&gt; HTML4:&lt;/p&gt;

&lt;pre id="example1-html" class="html"&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="meta_tag"&gt;&lt;!&lt;span class="meta_tag"&gt;&lt;span class="meta_tag_sgml_doctype"&gt;DOCTYPE html PUBLIC&lt;/span&gt; &lt;span class="string"&gt;"-//W3C//DTD HTML 4.01//EN"&lt;/span&gt;
   &lt;span class="string"&gt;"http://www.w3.org/TR/html4/strict.dtd"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;html lang="en"&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;head&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;title&gt;&lt;/span&gt;Article (HTML4)&lt;span class="meta_tag"&gt;&lt;/title&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;meta http-equiv=&lt;span class="string"&gt;"Content-Type"&lt;/span&gt; content=&lt;span class="string"&gt;"text/html; charset=utf-8"&lt;/span&gt;&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/head&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;body&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"branding"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Site name&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
      &lt;span class="comment comment_block"&gt;&lt;!-- other page heading content --&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;ul &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"nav"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;li&gt;&lt;/span&gt;Site navigation&lt;span class="meta_tag"&gt;&lt;/li&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/ul&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"content"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"main"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- main content (the article) --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p &lt;span class="meta_attribute-with-value"&gt;class=&lt;span class="string"&gt;"meta"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;Article metadata&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p &lt;span class="meta_attribute-with-value"&gt;class=&lt;span class="string"&gt;"article-footer"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;Article footer&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"sidebar"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- secondary content --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h2&gt;&lt;/span&gt;Sidebar title&lt;span class="meta_tag"&gt;&lt;/h2&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Sidebar content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;Footer&lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/body&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/html&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p class="xhtml"&gt;So let’s write that in standard &lt;acronym title="plain old semantic HTML"&gt;POSH&lt;/acronym&gt; XHTML1.0:&lt;/p&gt;

&lt;pre id="example1-xhtml" class="xhtml"&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="meta_tag"&gt;&lt;!&lt;span class="meta_tag"&gt;&lt;span class="meta_tag_sgml_doctype"&gt;DOCTYPE html PUBLIC&lt;/span&gt; &lt;span class="string"&gt;"-//W3C//DTD XHTML 1.0 Strict//EN"&lt;/span&gt;
  &lt;span class="string"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;html lang=&lt;span class="string"&gt;"en"&lt;/span&gt; xml:lang=&lt;span class="string"&gt;"en"&lt;/span&gt;&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;head&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;title&gt;&lt;/span&gt;Article (XHTML1)&lt;span class="meta_tag"&gt;&lt;/title&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;meta http-equiv=&lt;span class="string"&gt;"Content-Type"&lt;/span&gt; content=&lt;span class="string"&gt;"text/html; charset=utf-8"&lt;/span&gt; /&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/head&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;body&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"branding"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Site name&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
      &lt;span class="comment comment_block"&gt;&lt;!-- other page heading content --&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;ul &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"nav"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;li&gt;&lt;/span&gt;Site navigation&lt;span class="meta_tag"&gt;&lt;/li&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/ul&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"content"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"main"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- main content (the article) --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p &lt;span class="meta_attribute-with-value"&gt;class=&lt;span class="string"&gt;"meta"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;Article metadata&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p &lt;span class="meta_attribute-with-value"&gt;class=&lt;span class="string"&gt;"article-footer"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;Article footer&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"sidebar"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- secondary content --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h2&gt;&lt;/span&gt;Sidebar title&lt;span class="meta_tag"&gt;&lt;/h2&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Sidebar content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;Footer&lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/body&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/html&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now let’s convert that to HTML5, using the new structural elements:&lt;/p&gt;

&lt;pre id="example2-html" class="html"&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment comment_block"&gt;&lt;!-- 'HTML-style' HTML5 --&gt;&lt;/span&gt;
&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;!&lt;span class="meta_tag_sgml_doctype"&gt;DOCTYPE html&lt;/span&gt;&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;html lang=&lt;span class="string"&gt;"en"&lt;/span&gt;&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;head&gt;&lt;/span&gt;
    &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;meta charset=&lt;span class="string"&gt;"utf-8"&lt;/span&gt;&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;title&gt;&lt;/span&gt;Article (HTML5)&lt;span class="meta_tag"&gt;&lt;/title&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/head&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;body&gt;&lt;/span&gt;
    &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;header &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"branding"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="comment comment_block"&gt;&lt;!-- page header (not in section etc) --&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Site name&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
      &lt;span class="comment comment_block"&gt;&lt;!-- other page heading content --&gt;&lt;/span&gt;
    &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/header&gt;&lt;/span&gt;&lt;/mark&gt;&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;nav&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;ul&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;li&gt;&lt;/span&gt;Main navigation&lt;span class="meta_tag"&gt;&lt;/li&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/ul&gt;&lt;/span&gt;
    &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/nav&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"content"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- wrapper for CSS styling &amp; no title so not section --&gt;&lt;/span&gt;
      &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;article&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="comment comment_block"&gt;&lt;!-- main content (the article) --&gt;&lt;/span&gt;
        &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;header&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
          &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article metadata&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/header&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;footer&gt;&lt;/span&gt;Article footer&lt;span class="meta_tag"&gt;&lt;/footer&gt;&lt;/span&gt;&lt;/mark&gt;&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/article&gt;&lt;/span&gt;&lt;/mark&gt;&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;aside &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"sidebar"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="comment comment_block"&gt;&lt;!-- secondary content for page (not related to article) --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Sidebar title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- ref: &lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#html5-heading-levels" title="HTML5 structureheader, hgroup &amp; h1-h6 ・ @boblet"&gt;HTML5-style heading element levels&lt;/a&gt; --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Sidebar content&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/aside&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;footer &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/mark&gt;Footer&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/footer&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="comment comment_block"&gt;&lt;!-- page footer (not in section etc) --&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/body&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/html&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;pre id="example2-xhtml" class="xhtml"&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment comment_block"&gt;&lt;!-- 'XHTML-style' HTML5 --&gt;&lt;/span&gt;
&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;!&lt;span class="meta_tag_sgml_doctype"&gt;DOCTYPE html&lt;/span&gt;&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;html lang=&lt;span class="string"&gt;"en"&lt;/span&gt;&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;head&gt;&lt;/span&gt;
    &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;meta charset=&lt;span class="string"&gt;"utf-8"&lt;/span&gt; /&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;title&gt;&lt;/span&gt;Article (HTML5)&lt;span class="meta_tag"&gt;&lt;/title&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/head&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;body&gt;&lt;/span&gt;
    &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;header &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"branding"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="comment comment_block"&gt;&lt;!-- page header (not in section etc) --&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Site name&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
      &lt;span class="comment comment_block"&gt;&lt;!-- other page heading content --&gt;&lt;/span&gt;
    &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/header&gt;&lt;/span&gt;&lt;/mark&gt;&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;nav&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;ul&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;li&gt;&lt;/span&gt;Main navigation&lt;span class="meta_tag"&gt;&lt;/li&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/ul&gt;&lt;/span&gt;
    &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/nav&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"content"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- wrapper for CSS styling &amp; no title so not section --&gt;&lt;/span&gt;
      &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;article&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="comment comment_block"&gt;&lt;!-- main content (the article) --&gt;&lt;/span&gt;
        &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;header&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
          &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article metadata&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/header&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;footer&gt;&lt;/span&gt;&lt;/mark&gt;Article footer&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/footer&gt;&lt;/span&gt;&lt;/mark&gt;&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/article&gt;&lt;/span&gt;&lt;/mark&gt;&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;aside &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"sidebar"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="comment comment_block"&gt;&lt;!-- secondary content for page (not related to article) --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Sidebar title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- ref: &lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#html5-heading-levels" title="HTML5 structureheader, hgroup &amp; h1-h6 ・ @boblet"&gt;HTML5-style heading element levels&lt;/a&gt; --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Sidebar content&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/aside&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;footer &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/mark&gt;Footer&lt;mark&gt;&lt;span class="meta_tag"&gt;&lt;/footer&gt;&lt;/span&gt;&lt;/mark&gt;&lt;span class="comment comment_block"&gt;&lt;!-- page footer (not in section etc) --&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/body&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/html&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Note here we assume that the sidebar contains content not related to the article (such as recent articles etc)&lt;ins datetime="2009-09-14T18:50:15+09:00"&gt;, so it’s a descendent of &lt;code&gt;&lt;body&gt;&lt;/code&gt; (page sidebar) not &lt;code&gt;&lt;article&gt;&lt;/code&gt;&lt;/ins&gt;. If it only contained content tangentially related to the article we could &lt;del datetime="2009-09-14T20:22:30+09:00"&gt;use &lt;code&gt;&lt;aside&gt;&lt;/code&gt;&lt;/del&gt;&lt;ins datetime="2009-09-14T20:21:21+09:00"&gt;make &lt;code&gt;&lt;aside&gt;&lt;/code&gt; a child of &lt;code&gt;&lt;article&gt;&lt;/code&gt;&lt;/ins&gt;. Also we assume that the &lt;del datetime="2009-09-12T14:46:00+09:00"&gt;&lt;code&gt;&lt;footer&gt;&lt;/code&gt; doesn’t contain much more than a copyright statement and contact information—a detailed footer with headings etc&lt;/del&gt;&lt;ins datetime="2009-09-12T14:46:00+09:00"&gt;page header and footer don’t contain nested &lt;code&gt;&lt;header&gt;&lt;/code&gt; or &lt;code&gt;&lt;footer&gt;&lt;/code&gt; elements—a complex page header/footer requiring these&lt;/ins&gt; would need it’s own &lt;code&gt;&lt;section&gt;&lt;/code&gt;.&lt;/p&gt;

&lt;ins id="ins-1" datetime="2009-07-16T13:30:00+09:00"&gt;
&lt;ins id="ins-2" datetime="2009-07-19T09:30:00+09:00"&gt;&lt;h3 id="xhtml-style"&gt;
&lt;code&gt;doctype&lt;/code&gt;, &lt;code&gt;charset&lt;/code&gt; &amp; XHTML-style markup&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#xhtml-style"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;&lt;/ins&gt;
&lt;p&gt;You’ll notice the &lt;code&gt;doctype&lt;/code&gt; and &lt;code&gt;charset&lt;/code&gt; are both much simpler. &lt;ins datetime="2009-07-22T18:00:00+09:00"&gt;HTML5 is case-insensitive, but WhatWG recommend this style of &lt;code&gt;doctype&lt;/code&gt; as it will also work in XHTML (which &lt;em&gt;is&lt;/em&gt; case sensitive). &lt;/ins&gt;While this style &lt;code&gt;charset&lt;/code&gt; is recommended, the &lt;a href="http://oli-studio.com/bugs/validator/html5-charset/" title="HTML5 charset testing &amp; the W3 validator"&gt;pre-HTML5 &lt;code&gt;charset&lt;/code&gt; declarations are still valid&lt;/a&gt;. Also, if you’re viewing XHTML-style code examples&lt;ins datetime="2009-09-16T13:29:14+09:00"&gt; (there’s a handy &lt;a href="#html-switcher"&gt;HTML/XHTML code style switcher&lt;/a&gt; top right)&lt;/ins&gt;, you’ll note that the &lt;code&gt;charset&lt;/code&gt; element still has an XHTML-style trailing slash in the HTML5 example. In fact &lt;em&gt;XHTML-style markup&lt;/em&gt; (a closing / on empty elements) like this is also valid HTML5! This makes it very easy to migrate to HTML5 from both HTML and XHTML pages. You should try to avoid mixing HTML and XHTML-style code, however—choose one style and stick with it.&lt;/p&gt;

&lt;h3 id="html5-xhtml5"&gt;HTML5 or XHTML5? &lt;em&gt;Choose HTML5&lt;/em&gt;&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#html5-xhtml5"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;p&gt;If you currently use XHTML1.x you might be thinking to use &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-xhtml-syntax.html" title="10 The XHTML syntax  HTML5"&gt;XHTML5, the XML-compatible version of HTML5&lt;/a&gt;. If your website will have a general audience (=people using &lt;acronym title="Internet Explorer"&gt;IE&lt;/acronym&gt;), &lt;strong&gt;don’t&lt;/strong&gt;. &lt;a href="http://wiki.whatwg.org/wiki/HTML_vs._XHTML" title="HTML vs. XHTML - WHATWG Wiki"&gt;XHTML5 &lt;em&gt;must&lt;/em&gt; be sent with an XML mime type&lt;/a&gt; (like &lt;code&gt;application/xhtml+xml&lt;/code&gt;), and even IE8 still doesn’t support this. However, all of the hallmarks of XHTML coding—writing elements in lower case, &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/#a-quick-introduction-to-html" title="HTML5"&gt;correct nesting&lt;/a&gt;, closing tags, adding optional elements that add meaning—are all compatible (HTML5 is case-insensitive) or encouraged in HTML5.&lt;/p&gt;
&lt;/ins&gt;

&lt;h3 id="browser-support"&gt;Browser support (via CSS and JS)&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#browser-support"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;p&gt;So, does it work? Currently the HTML5 structural elements will work in modern browsers (Firefox 3+, Safari 3+, Opera 9+, Chrome 1+&lt;!-- ?? to check --&gt;) as long as we declare them as block-level elements via this CSS:&lt;/p&gt;

&lt;pre id="example3"&gt;&lt;code&gt;&lt;span class="source_css"&gt;&lt;span class="comment comment_block"&gt;/* Declaring HTML5 elements */&lt;/span&gt;
&lt;span class="meta_selector"&gt;&lt;span class="entity_name_tag_css"&gt;article,aside,&lt;ins datetime="2009-09-14T23:19:55+09:00"&gt;details,&lt;/ins&gt;&lt;del datetime="2009-09-16T14:15:10+09:00"&gt;dialog,&lt;/del&gt;figure,footer,header,&lt;ins datetime="2009-09-14T23:20:22+09:00"&gt;hgroup,menu&lt;/ins&gt;,nav,section&lt;/span&gt;&lt;/span&gt;&lt;span class="meta_property-list"&gt;{
  &lt;span class="meta_property-name"&gt;&lt;span class="support_type_property-name_css"&gt;display&lt;/span&gt;&lt;/span&gt;&lt;span class="meta_property-value"&gt;: &lt;span class="support_constant_property-value_css"&gt;block&lt;/span&gt;;&lt;/span&gt;
  }&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and &lt;a href="http://remysharp.com/2009/01/07/html5-enabling-script/" title="HTML5 enabling script"&gt;in Internet Explorer 8 and below we need to hack support in via Javascript&lt;/a&gt; (I bet you didn’t see that coming ;-)&lt;/p&gt;

&lt;pre id="example4"&gt;&lt;code&gt;&lt;span class="source_js"&gt;(&lt;span class="meta meta_function meta_function_js"&gt;&lt;span class="storage storage_type storage_type_function storage_type_function_js"&gt;function&lt;/span&gt;(){&lt;span class="keyword keyword_control"&gt;if&lt;/span&gt;(&lt;span class="keyword keyword_operator"&gt;!&lt;/span&gt;&lt;span class="comment comment_block comment_block_conditional comment_block_conditional_js"&gt;/*@cc_on!@*/&lt;/span&gt;&lt;span class="constant constant_numeric"&gt;0&lt;/span&gt;)&lt;span class="keyword keyword_control"&gt;return&lt;/span&gt;;var e &lt;span class="keyword keyword_operator"&gt;=&lt;/span&gt; &lt;span class="string"&gt;"abbr,article,aside,audio,&lt;del datetime="2009-09-16T14:15:31+09:00"&gt;bb,&lt;/del&gt;canvas,&lt;del datetime="2009-09-16T14:16:51+09:00"&gt;datagrid,&lt;/del&gt;datalist,details,&lt;del datetime="2009-09-16T14:15:48+09:00"&gt;dialog,&lt;/del&gt;eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video"&lt;/span&gt;.&lt;span class="support_function"&gt;split&lt;/span&gt;(&lt;span class="string"&gt;','&lt;/span&gt;),i&lt;span class="keyword keyword_operator"&gt;=&lt;/span&gt;e.length;&lt;span class="keyword keyword_control"&gt;while&lt;/span&gt;(i&lt;span class="keyword keyword_operator"&gt;--&lt;/span&gt;){document.&lt;span class="support_function"&gt;createElement&lt;/span&gt;(e[i])}}&lt;/span&gt;)()&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The recommended way to add this Javascript is via &lt;a href="http://code.google.com/p/html5shiv/" title="html5shiv - Google Code"&gt;Remy Sharp’s Google Code-hosted HTLM5 shiv for IE&lt;/a&gt; in the page &lt;code&gt;&lt;head&gt;&lt;/code&gt;:&lt;/p&gt;

&lt;pre id="example7"&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment comment_block"&gt;&lt;!--[if IE]&gt;
&lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
&lt;![endif]--&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So, all together now…&lt;/p&gt;

&lt;pre id="example8"&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="meta_tag"&gt;&lt;head&gt;&lt;/span&gt;
  &lt;span class="comment comment_block"&gt;&lt;!--[if IE]&gt;
    &lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;style type=&lt;span class="string"&gt;"text/css"&lt;/span&gt; media=&lt;span class="string"&gt;"screen"&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;/* Declaring HTML5 elements */&lt;/span&gt;
  &lt;span class="source_css"&gt;&lt;span class="meta_selector"&gt;&lt;span class="entity_name_tag_css"&gt;article,aside,&lt;ins datetime="2009-09-14T23:19:55+09:00"&gt;details,&lt;/ins&gt;&lt;del datetime="2009-09-16T14:15:10+09:00"&gt;dialog,&lt;/del&gt;figure,footer,header,&lt;ins datetime="2009-09-14T23:20:22+09:00"&gt;hgroup,menu&lt;/ins&gt;,nav,section&lt;/span&gt;&lt;/span&gt;&lt;span class="meta_property-list"&gt;{
    &lt;span class="meta_property-name"&gt;&lt;span class="support_type_property-name_css"&gt;display&lt;/span&gt;&lt;/span&gt;&lt;span class="meta_property-value"&gt;: &lt;span class="support_constant_property-value_css"&gt;block&lt;/span&gt;;&lt;/span&gt;
    }&lt;/span&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/style&gt;&lt;/span&gt;
  …
&lt;span class="meta_tag"&gt;&lt;/head&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id="ie-no-go"&gt;…but IE requiring JS means we’re screwed, right?&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#ie-no-go"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;p&gt;You can easily choose to not worry about IE with Javascript turned off on a personal weblog, but if an IE user has &lt;acronym title="Javascript"&gt;JS&lt;/acronym&gt; disabled the new elements (and their associated styling) will be dropped, and the page will ass-plode (feel that déjà vu). While Javascript is becoming more of a requirement with the rise of web apps, IE needing Javascript will probably still be a show-stopper on commercial projects.&lt;/p&gt;

&lt;p&gt;You might think that IE’s lack of support without Javascript for these new elements means you can’t use HTML5 at all, but there are two ways we can still benefit from HTML5’s greater semantic richness—by using HTML5 semantic element names as class names on &lt;code&gt;&lt;div&gt;&lt;/code&gt;&lt;ins datetime="2009-09-16T14:34:58+09:00"&gt; (so-called HTML4.5)&lt;/ins&gt;, in either HTML4/XHTML1.0 or HTML5. You’re probably already using a standard set of class and id names anyway, and this is in effect &lt;a href="http://boblet.tumblr.com/post/60552152/html5" title="HTML5 id/class name cheatsheet ・ @boblet | random notes"&gt;a standardised set of semantic class names&lt;/a&gt;. HTML5 is basically a superset of HTML4/XHTML1, so &lt;em&gt;as long as you don’t use any new elements &lt;strong&gt;HTML5 pages will work in IE&lt;/strong&gt;&lt;/em&gt;. It also has the benefits of simplifying a future move to HTML5, and if you use the HTML5 doctype you can also use the more detailed HTML5 validators.&lt;/p&gt;

&lt;h3 id="using-html5-today"&gt;Adding HTML5’s semantics via &lt;code&gt;&lt;div class=""&gt;&lt;/code&gt;&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#using-html5-today"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;p class="html"&gt;Here’s the HTML4 version using HTML5 class names:&lt;/p&gt;

&lt;pre id="example5-html" class="html"&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="meta_tag"&gt;&lt;!&lt;span class="meta_tag"&gt;&lt;span class="meta_tag_sgml_doctype"&gt;DOCTYPE html PUBLIC&lt;/span&gt; &lt;span class="string"&gt;"-//W3C//DTD HTML 4.01//EN"&lt;/span&gt;
   &lt;span class="string"&gt;"http://www.w3.org/TR/html4/strict.dtd"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;html lang=&lt;span class="string"&gt;"en"&lt;/span&gt;&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;head&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;title&gt;&lt;/span&gt;Article (HTML4), with HTML5 class names&lt;span class="meta_tag"&gt;&lt;/title&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;meta http-equiv=&lt;span class="string"&gt;"Content-Type"&lt;/span&gt; content=&lt;span class="string"&gt;"text/html; charset=utf-8"&lt;/span&gt;&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/head&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;body&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"page-header"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"header"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- page header (note class="header") --&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Site name&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
      &lt;span class="comment comment_block"&gt;&lt;!-- other page heading content --&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;ul &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"main-nav"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"nav"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;li&gt;&lt;/span&gt;Site navigation&lt;span class="meta_tag"&gt;&lt;/li&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/ul&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"content"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"main"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"article"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- main content --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;div &lt;mark&gt;class=&lt;span class="string"&gt;"header"&lt;/span&gt;&lt;/mark&gt;&gt;&lt;/span&gt;
          &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
          &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article metadata&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p &lt;span class="meta_attribute-with-value"&gt;class=&lt;span class="string"&gt;"&lt;mark&gt;footer&lt;/mark&gt;"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;Article footer&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"sidebar"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"aside"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- secondary content --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h2&gt;&lt;/span&gt;Sidebar title&lt;span class="meta_tag"&gt;&lt;/h2&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Sidebar content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"page-footer"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt;Footer&lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/body&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/html&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p class="xhtml"&gt;Here’s the XHTML1 version using HTML5 class names:&lt;/p&gt;

&lt;pre id="example5-xhtml" class="xhtml"&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="meta_tag"&gt;&lt;!&lt;span class="meta_tag"&gt;&lt;span class="meta_tag_sgml_doctype"&gt;DOCTYPE html PUBLIC&lt;/span&gt; &lt;span class="string"&gt;"-//W3C//DTD XHTML 1.0 Strict//EN"&lt;/span&gt;
  &lt;span class="string"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;html lang=&lt;span class="string"&gt;"en"&lt;/span&gt; xml:lang=&lt;span class="string"&gt;"en"&lt;/span&gt;&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;head&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;title&gt;&lt;/span&gt;Article (XHTML1), with HTML5 class names&lt;span class="meta_tag"&gt;&lt;/title&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;meta http-equiv=&lt;span class="string"&gt;"Content-Type"&lt;/span&gt; content=&lt;span class="string"&gt;"text/html; charset=utf-8"&lt;/span&gt; /&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/head&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;body&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"page-header"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"header"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- page header --&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Site name&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
      &lt;span class="comment comment_block"&gt;&lt;!-- other page heading content --&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;ul &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"main-nav"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"nav"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;li&gt;&lt;/span&gt;Site navigation&lt;span class="meta_tag"&gt;&lt;/li&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/ul&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"content"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"main"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"article"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- main content --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;div &lt;mark&gt;class=&lt;span class="string"&gt;"header"&lt;/span&gt;&lt;/mark&gt;&gt;&lt;/span&gt;
          &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
          &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article metadata&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p &lt;mark&gt;&lt;span class="meta_attribute-with-value"&gt;class=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/span&gt;&lt;/mark&gt;&gt;&lt;/span&gt;Article footer&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"sidebar"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"aside"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- secondary content --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h2&gt;&lt;/span&gt;Sidebar title&lt;span class="meta_tag"&gt;&lt;/h2&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Sidebar content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"page-footer"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt;Footer&lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/body&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/html&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now in HTML5, again using &lt;code&gt;&lt;div&gt;&lt;/code&gt; with HTML5 class names rather than the new HTML5 elements:&lt;/p&gt;

&lt;pre id="example6-html" class="html"&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment comment_block"&gt;&lt;!-- 'HTML-style' HTML5 --&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;!&lt;span class="meta_tag_sgml_doctype"&gt;DOCTYPE html&lt;/span&gt;&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;html lang=&lt;span class="string"&gt;"en"&lt;/span&gt;&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;head&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;title&gt;&lt;/span&gt;Article (HTML5), with HTML5 class names&lt;span class="meta_tag"&gt;&lt;/title&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;meta charset=&lt;span class="string"&gt;"utf-8"&lt;/span&gt;&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/head&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;body&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"page-header"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"header"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- page header --&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Site name&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
      &lt;span class="comment comment_block"&gt;&lt;!-- other page heading content --&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;ul &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"main-nav"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"nav"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;li&gt;&lt;/span&gt;Site navigation&lt;span class="meta_tag"&gt;&lt;/li&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/ul&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"content"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"main"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"article"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- main content --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;div &lt;mark&gt;&lt;span class="meta_attribute-with-value"&gt;class=&lt;span class="string"&gt;"header"&lt;/span&gt;&lt;/span&gt;&lt;/mark&gt;&gt;&lt;/span&gt;
          &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
          &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article metadata&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p &lt;mark&gt;&lt;span class="meta_attribute-with-value"&gt;class=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/span&gt;&lt;/mark&gt;&gt;&lt;/span&gt;Article footer&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"sidebar"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"aside"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- secondary content --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h2&gt;&lt;/span&gt;Sidebar title&lt;span class="meta_tag"&gt;&lt;/h2&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Sidebar content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"page-footer"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt;Footer&lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/body&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/html&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;pre id="example6-xhtml" class="xhtml"&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment comment_block"&gt;&lt;!-- 'XHTML-style' HTML5 --&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;!&lt;span class="meta_tag_sgml_doctype"&gt;DOCTYPE html&lt;/span&gt;&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;html lang=&lt;span class="string"&gt;"en"&lt;/span&gt;&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;head&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;title&gt;&lt;/span&gt;Article (HTML5), with HTML5 class names&lt;span class="meta_tag"&gt;&lt;/title&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;meta charset=&lt;span class="string"&gt;"utf-8"&lt;/span&gt; /&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/head&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;body&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"page-header"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"header"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- page header --&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Site name&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
      &lt;span class="comment comment_block"&gt;&lt;!-- other page heading content --&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;ul &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"main-nav"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"nav"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;li&gt;&lt;/span&gt;Site navigation&lt;span class="meta_tag"&gt;&lt;/li&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/ul&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"content"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"main"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"article"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- main content --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;div &lt;mark&gt;&lt;span class="meta_attribute-with-value"&gt;class=&lt;span class="string"&gt;"header"&lt;/span&gt;&lt;/span&gt;&lt;/mark&gt;&gt;&lt;/span&gt;
          &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
          &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article metadata&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Article content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p &lt;mark&gt;&lt;span class="meta_attribute-with-value"&gt;class=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/span&gt;&lt;/mark&gt;&gt;&lt;/span&gt;Article footer&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"sidebar"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"aside"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt; &lt;span class="comment comment_block"&gt;&lt;!-- secondary content --&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h2&gt;&lt;/span&gt;Sidebar title&lt;span class="meta_tag"&gt;&lt;/h2&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Sidebar content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;div &lt;span class="meta_attribute-with-value"&gt;id=&lt;span class="string"&gt;"page-footer"&lt;/span&gt; &lt;mark&gt;class=&lt;span class="string"&gt;"footer"&lt;/span&gt;&lt;/mark&gt;&lt;/span&gt;&gt;&lt;/span&gt;Footer&lt;span class="meta_tag"&gt;&lt;/div&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/body&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/html&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You may be wondering why these two examples are so similar—after all, only the doctype and charset differ! That’s because one of &lt;a href="http://www.w3.org/TR/html-design-principles/#compatibility" title="HTML Design Principles"&gt;HTML5’s core principles is &lt;em&gt;compatibility&lt;/em&gt;&lt;/a&gt;. If we don’t use any new HTML5 elements, a change of doctype might be all that’s required to convert a well-coded HTML or XHTML page to HTML5.&lt;/p&gt;

&lt;h3 id="why-html5"&gt;Why bother with HTML5?&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#why-html5"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;del datetime="2009-09-16T18:00:44+09:00"&gt;So if you’re not going to use HTML5’s new elements, which IE doesn’t support without Javascript&lt;/del&gt;&lt;ins datetime="2009-09-16T18:01:56+09:00"&gt;Hopefully by now you’re feeling excited about using HTML5 for a personal project. But if you’ve decided not to use HTML5’s new elements because IE doesn’t support them without Javascript&lt;/ins&gt;, what’s the point of thinking about HTML5 now? I see several benefits:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Thinking about HTML5’s structural elements (even if we only &lt;a href="http://boblet.tumblr.com/post/60552152/html5" title="HTML5 id/class name cheatsheet ・ @boblet | random notes"&gt;express the semantics via class names&lt;/a&gt; as described above) will make our code more logical and semantic&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/" title="HTML5"&gt;HTML5 is defined in far greater detail&lt;/a&gt; than previous HTML/XHTML specs, giving us more guidance in creating web pages&lt;/li&gt;
&lt;li&gt;Another benefit of this detail is more accurate validators (&lt;a href="http://validator.w3.org/" title="The W3C Markup Validation Service"&gt;W3C&lt;/a&gt;, &lt;a href="http://validator.nu/" title="Validator.nu"&gt;Validator.nu&lt;/a&gt;), with the potential for more detailed error messages&lt;/li&gt;
&lt;li&gt;If you think you might convert to HTML5 in the future, the HTML-5-elements-as-class-names approach should remove a lot of the pain of converting (especially with a little regexp magic)&lt;/li&gt;
&lt;li&gt;Now that &lt;a href="http://www.zeldman.com/2009/07/02/xhtml-wtf/" title="XHTML DOA WTF  – Jeffrey Zeldman Presents The Daily Report"&gt;XHTML2 development will be halted&lt;/a&gt;, starting to learn about the official future of HTML is a Good Idea™&lt;/li&gt;
&lt;li&gt;&lt;ins id="ins-4" datetime="2009-07-19T09:30:00+09:00"&gt;&lt;a href="http://html5doctor.com/your-questions-answered-1/#comment-175" title="Your questions answered #1 | HTML5 Doctor"&gt;Using HTML5 is a &lt;em&gt;sliding scale&lt;/em&gt;, not all or nothing&lt;/a&gt;. You can get benefits from simply &lt;a href="http://html5doctor.com/html-5-boilerplates/" title="HTML5 Boilerplates | HTML5 Doctor"&gt;changing the &lt;code&gt;doctype&lt;/code&gt;, a five second job&lt;/a&gt;.&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins id="ins-5" datetime="2009-07-19T09:30:00+09:00"&gt;Because &lt;a href="http://wiki.whatwg.org/wiki/FAQ#How_are_pre-HTML5_documents_parsed.3F" title="FAQ - WHATWG Wiki"&gt;browsers use the same parser for HTML5 as HTML4/XHTML1&lt;/a&gt;, and because backwards compatibility is a central tenet, using an HTML5 &lt;code&gt;doctype&lt;/code&gt; today has almost no disadvantages (make sure to check &lt;a href="http://www.w3.org/TR/html5-diff/" title="HTML 5 differences from HTML 4"&gt;HTML5 differences from HTML4&lt;/a&gt;, specifically &lt;a href="http://www.w3.org/TR/html5-diff/#changed-elements" title="HTML 5 differences from HTML 4"&gt;3.3-3.5&lt;/a&gt;).&lt;/ins&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It’s possible to just change the &lt;code&gt;doctype&lt;/code&gt; and get some benefits from having converted to HTML5 (when you use a validator :). However, the more time you put into HTML5 the greater the reward. You’ll get the most benefit from rethinking your site’s semantics from an HTML5 perspective, although for the present I’d recommend &lt;a href="#ie-no-go"&gt;adding these extra semantics via the HTML-5-elements-as-class-names approach&lt;/a&gt;&lt;ins datetime="2009-09-16T18:21:52+09:00"&gt; for commercial projects&lt;/ins&gt;.&lt;/p&gt;

&lt;p&gt;Questions? Feedback? Mistakes? &lt;a href="http://twitter.com/home?status=%40boblet%20re%3A%20http%3A%2F%2Fbit.ly%2FTE2TL%20" title="via the Twitter homepage"&gt;Let me know via Twitter&lt;/a&gt; (&lt;a href="http://twitter.com/boblet"&gt;@boblet)&lt;/a&gt;…&lt;/p&gt;

&lt;div id="changes" class="section"&gt;
&lt;h3&gt;Changes:&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4#changes"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;ins datetime="2009-07-16T13:30:00+09:00"&gt;&lt;em&gt;2009-07-16&lt;/em&gt; Added &lt;a href="#ins-1"&gt;notes about &lt;code&gt;doctype&lt;/code&gt;, XHTML5 and XHTML-style coding in HTML5&lt;/a&gt;, thanks to feedback from &lt;a href="http://twitter.com/robertdot" title="@robertdot on Twitter"&gt;@robertdot&lt;/a&gt;. Also changed &lt;code&gt;doctype&lt;/code&gt; to lower case in HTML5 code examples for consistency (HTML5 is case-insensitive so either is fine).&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-07-19T11:00:00+09:00"&gt;&lt;em&gt;2009-07-19&lt;/em&gt; Added headings for the &lt;a href="#ins-2"&gt;&lt;code&gt;doctype&lt;/code&gt;, &lt;code&gt;charset&lt;/code&gt; &amp; XHTML-style markup&lt;/a&gt; and &lt;a href="#html5-xhtml5"&gt;HTML5 or XHTML5? &lt;em&gt;Choose HTML5&lt;/em&gt;&lt;/a&gt; sections I added last time, for better scanability. Added &lt;a href="#browser-support"&gt;more info on the HTML5 shiv plus a copy-paste-able &lt;code&gt;head&lt;/code&gt; code block for adding JS and CSS&lt;/a&gt; (&lt;a href="http://html5doctor.com/html-5-boilerplates/" title="HTML5 Boilerplates | HTML5 Doctor"&gt;thanks to HTML5 Doctor for the prompt&lt;/a&gt;). Also I added a few more links, a couple more points to “Why bother with HTML5?” (‘&lt;a href="#ins-4"&gt;sliding scale&lt;/a&gt;’ and ‘&lt;a href="#ins-5"&gt;no disadvantages&lt;/a&gt;’), &lt;a href="#why-html5"&gt;rewrote the conclusion&lt;/a&gt;, and added what could be my &lt;a href="#ie-no-go" title="“…but IE requiring JS means we’re screwed, right?”"&gt;favourite header ever&lt;/a&gt;.&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-07-22T11:45:00+09:00"&gt;&lt;em&gt;2009-07-22&lt;/em&gt; Added or rewrote these subtitles; &lt;a href="#article-page"&gt;Converting a simple page to HTML5&lt;/a&gt; and &lt;a href="#using-html5-today"&gt;Adding HTML5’s semantics via &lt;code&gt;&lt;div class=""&gt;&lt;/code&gt;&lt;/a&gt;. Changed “HTML5” to “HTML 5” etc.&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-07-22T18:15:00+09:00"&gt;&lt;em&gt;2009-07-22&lt;/em&gt; &lt;em&gt;Reverted&lt;/em&gt; doctype to &lt;a href="http://wiki.whatwg.org/wiki/FAQ#What_will_the_DOCTYPE_be.3F" title="FAQ - WHATWG Wiki"&gt;WhatWG-recommended XHTML-compatible style&lt;/a&gt; (although a lower-case doctype is fine in HTML 5!).&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-09-16T18:22:32+09:00"&gt;&lt;em&gt;2009-09-16&lt;/em&gt; Changed almost everything :)&lt;/ins&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;

&lt;script type="text/javascript" src="http://oli-studio.com/html5/js/html-switcher.js"&gt;&lt;/script&gt;</description><link>http://boblet.tumblr.com/post/141239118</link><guid>http://boblet.tumblr.com/post/141239118</guid><pubDate>Tue, 14 Jul 2009 13:53:00 +0900</pubDate><category>Structure</category><category>convert</category><category>html4</category><category>html5</category><category>xhtml1</category><category>xhtml5</category></item><item><title>Living with First-Person Shooter Disease

Meet Gene Simpkins,...</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/-jBKKV2V8eU&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/-jBKKV2V8eU&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;h2&gt;Living with First-Person Shooter Disease&lt;/h2&gt;

&lt;p&gt;Meet Gene Simpkins, sufferer of moto-neural demyelination, or to the layman, Duke Nukem’s Disease…&lt;/p&gt;</description><link>http://boblet.tumblr.com/post/138732042</link><guid>http://boblet.tumblr.com/post/138732042</guid><pubDate>Fri, 10 Jul 2009 10:33:30 +0900</pubDate><category>video</category><category>humor</category><category>fps</category><category>gaming</category></item><item><title>matthewb:


Red Rabbit was written, directed, modeled and almost...</title><description>&lt;object type="application/x-shockwave-flash" width="400" height="224" data="http://vimeo.com/moogaloop.swf?clip_id=4949853&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF"&gt;&lt;param name="quality" value="best" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="scale" value="showAll" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=4949853&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF" /&gt;&lt;embed src="http://www.vimeo.com/moogaloop.swf?clip_id=4949853&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="224"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://matthewbuchanan.name/post/135803592/red-rabbit"&gt;matthewb&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;a href="http://vimeo.com/4949853"&gt;&lt;em&gt;Red Rabbit&lt;/em&gt;&lt;/a&gt; was written, directed, modeled and almost entirely animated by Egmont Mayer, using Softimage XSI. Fabulous.&lt;/blockquote&gt;</description><link>http://boblet.tumblr.com/post/136753040</link><guid>http://boblet.tumblr.com/post/136753040</guid><pubDate>Tue, 07 Jul 2009 10:18:00 +0900</pubDate><category>movie</category></item><item><title>HTML5 structure—nav, aside, figure, &amp; footer</title><description>&lt;div&gt;
&lt;!-- wrapper for Tumblr --&gt;&lt;nav id="html5-articles"&gt;&lt;h3&gt;Other HTML 5 articles&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/60552152/html5" title="HTML5 id/class name cheatsheet・@boblet | random notes"&gt;HTML 5 id/class name cheatsheet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;HTML 5 structure…
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/130610820/html5-structure1" title="HTML5 structurediv, section &amp; article・@boblet | random notes"&gt;div, section &amp; article&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2" title="HTML5 structureheader, hgroup &amp; h1-h6・@boblet | random notes"&gt;header, hgroup &amp; h1-h6&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3" title="HTML5 structurenav, aside, figure, &amp; footer・@boblet | random notes"&gt;nav, aside, figure, &amp; footer&lt;/a&gt; (plus outlines)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4" title="HTML5 structureHTML4 and XHTML1 to HTML5・@boblet | random notes"&gt;HTML 4 and XHTML 1 to HTML 5&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://bit.ly/EgVcc" title="12 common problems with HTML 5 ・ @boblet | random notes"&gt;12 common problems with HTML 5&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/178852468/block-level-links" title="Block-level links, HTML5 and Firefox ・ @boblet"&gt;Block-level links, HTML5 &amp; Firefox&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/nav&gt;
&lt;/div&gt;

&lt;p&gt;After talking about &lt;a href="http://boblet.tumblr.com/post/130610820/html5-structure1" title="HTML5 structure&lt;div&gt;, &lt;section&gt; &amp; &lt;article&gt;"&gt;&lt;code&gt;&lt;section&gt;&lt;/code&gt; &amp; &lt;code&gt;&lt;article&gt;&lt;/code&gt;&lt;/a&gt;, and &lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2" title="HTML5 structure&lt;header&gt;, &lt;hgroup&gt; &amp; &lt;h1&gt;-&lt;h6&gt;"&gt;&lt;code&gt;&lt;header&gt;&lt;/code&gt; &amp; &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt;&lt;/a&gt;,  I’m going to look at &lt;code&gt;&lt;nav&gt;&lt;/code&gt;, &lt;code&gt;&lt;aside&gt;&lt;/code&gt;, &lt;code&gt;&lt;figure&gt;&lt;/code&gt; and &lt;code&gt;&lt;footer&gt;&lt;/code&gt;, before looking at sectioning content, heading content and outlines:&lt;/p&gt;

&lt;ul&gt;
&lt;li id="element-nav"&gt;
&lt;strong&gt;&lt;code&gt;&lt;nav&gt;&lt;/code&gt;&lt;/strong&gt;—a section of navigation links, either to other pages (site navigation) or to sections on the same page (eg a table of contents for long articles). This is for &lt;q cite="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-nav-element"&gt;primary navigation blocks&lt;/q&gt;, not just for any group of links. For example content highlights in the page’s footer don’t qualify. Breadcrumbs probably don’t either.&lt;!-- ?? check --&gt; (&lt;a href="http://dev.w3.org/html5/markup/nav.html" title="nav – group of navigational links"&gt;W3C:HTML&lt;/a&gt;, &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-nav-element" title="4 The elements of HTML  HTML5"&gt;WhatWG&lt;/a&gt;)&lt;/li&gt;
&lt;li id="element-aside"&gt;
&lt;strong&gt;&lt;code&gt;&lt;aside&gt;&lt;/code&gt;&lt;/strong&gt;—a section of a page that consists of content that is tangentially related—but separate—to the surrounding content. In print this would be a sidebar, pullquote or footnote. On a weblog article this could be article metadata in the margin or the comments section. (&lt;a href="http://dev.w3.org/html5/markup/aside.html" title="aside – tangental content"&gt;W3C:HTML&lt;/a&gt;, &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-aside-element" title="4 The elements of HTML  HTML5"&gt;WhatWG&lt;/a&gt;)&lt;/li&gt;
&lt;li id="element-figure"&gt;
&lt;strong&gt;&lt;code&gt;&lt;figure&gt;&lt;/code&gt;&lt;/strong&gt;—for content that is essential to understanding, but can be removed from the document’s ‘flow’ (moved to a different place) without affecting the document’s meaning. As the name and the optional child &lt;code&gt;&lt;legend&gt;&lt;/code&gt; element for a caption imply this can be used for images or video, but it can also be used for any other content, including a graph, code sample, or other media. (&lt;a href="http://dev.w3.org/html5/markup/figure.html" title="figure – figure with optional caption"&gt;W3C:HTML&lt;/a&gt;, &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-figure-element" title="4 The elements of HTML  HTML5"&gt;WhatWG&lt;/a&gt;)&lt;/li&gt;
&lt;li id="element-footer"&gt;
&lt;strong&gt;&lt;code&gt;&lt;footer&gt;&lt;/code&gt;&lt;/strong&gt;—a container element for additional information about a section, such as &lt;q cite="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-footer-element"&gt;who wrote it, links to related documents, copyright data&lt;/q&gt;, a link to the top of the page etc, that usually appears at the end of a section. &lt;mark class="changed"&gt;&lt;code&gt;&lt;footer&gt;&lt;/code&gt; can’t contain &lt;del datetime="2009-09-12T13:17:00+09:00"&gt;&lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#heading-content-0" title="3 Semantics, structure, and APIs of HTML documents  HTML5"&gt;heading&lt;/a&gt; or &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#sectioning-content-0" title="3 Semantics, structure, and APIs of HTML documents  HTML5"&gt;sectioning elements&lt;/a&gt;&lt;/del&gt;&lt;ins id="ins-6" datetime="2009-09-12T13:17:00+09:00"&gt;nested &lt;code&gt;&lt;header&gt;&lt;/code&gt; or &lt;code&gt;&lt;footer&gt;&lt;/code&gt; elements&lt;/ins&gt;—use a &lt;code&gt;&lt;section&gt;&lt;/code&gt; instead for complex footers that need nested &lt;code&gt;&lt;section&gt;&lt;/code&gt;s with &lt;code&gt;&lt;header&gt;&lt;/code&gt;s etc.&lt;/mark&gt;&lt;del datetime="2009-07-14"&gt; Also remember to enclose contact information in an &lt;code&gt;&lt;address&gt;&lt;/code&gt; element, as this now applies to a section, not the entire page as in HTML4.&lt;/del&gt; (&lt;a href="http://dev.w3.org/html5/markup/footer.html" title="HTML5: footer – footer"&gt;W3C:HTML&lt;/a&gt;, &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-footer-element" title="4 The elements of HTML  HTML5"&gt;WhatWG&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You’re probably already using a &lt;code&gt;&lt;ul class="nav"&gt;&lt;/code&gt; or something similar for site navigation. The &lt;code&gt;&lt;nav&gt;&lt;/code&gt; element allows us to explicitly mark up both site and in-page navigation. This has accessibility benefits, eg for users of assistive technology like screen readers. Note you’ll still need the &lt;code&gt;&lt;ul&gt;&lt;/code&gt; or &lt;code&gt;&lt;ol&gt;&lt;/code&gt; element if you are using a list for your navigation (and you should be—it’s the most appropriate element), but you can also include a heading element (&lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt;) or other relevant content.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;aside&gt;&lt;/code&gt; content should be additional to (but not essential to the understanding of) the main content, ie &lt;em&gt;any&lt;/em&gt; related content. While the examples of print design can provide inspiration don’t stop at pull quotes. For example a footnote provides extra but unessential information, and a pull quote (while essential content) is a copy of a quote from the main content. However keep in mind the &lt;code&gt;&lt;aside&gt;&lt;/code&gt; must be related—having your sidebar in an &lt;code&gt;&lt;aside&gt;&lt;/code&gt; in the page’s main &lt;code&gt;&lt;section&gt;&lt;/code&gt; is fine, but site-wide information shouldn’t appear in an article’s &lt;code&gt;&lt;aside&gt;&lt;/code&gt;, for example.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;figure&gt;&lt;/code&gt; content &lt;em&gt;is&lt;/em&gt; essential, but it’s placement is not. Any part of a section that you’d currently use CSS positioning for would be a good candidate. Both of these elements provide additional semantic meaning, which allows computers to discern the relationships between the parts of a page (and between pages) more easily. In addition to accessibility, this will also help in indexing and repurposing content.&lt;/p&gt;

&lt;p&gt;Choose between &lt;code&gt;&lt;aside&gt;&lt;/code&gt; or &lt;code&gt;&lt;figure&gt;&lt;/code&gt; by asking yourself if the content is essential to the section’s understanding. If the content is just related and not essential, use &lt;code&gt;&lt;aside&gt;&lt;/code&gt;. If the content is essential but it’s position in the flow of content isn’t important, use &lt;code&gt;&lt;figure&gt;&lt;/code&gt;. Of course, if it’s position relates to previous and subsequent content, use something else more appropriate! :)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;footer&gt;&lt;/code&gt; seems to suggest a page footer, however it’s important to remember that like &lt;code&gt;&lt;header&gt;&lt;/code&gt; this element applies to the current section&lt;ins id="ins-7" datetime="2009-09-12T13:33:00+09:00"&gt; (in the case of a page header or footer the &lt;code&gt;&lt;body&gt;&lt;/code&gt; acts as the section)&lt;/ins&gt;. It’s defining feature is &lt;em&gt;containing navigation aids or additional information about the section&lt;/em&gt;, rather than it’s placement.&lt;ins id="ins-1" datetime="2009-07-14"&gt; If you add contact information for the section’s author remember to enclose it in an &lt;code&gt;&lt;address&gt;&lt;/code&gt; element, as this now applies to a section, not the entire page as in HTML4/XHTML1.&lt;/ins&gt;&lt;/p&gt;

&lt;del id="ins-2"&gt;
&lt;h3&gt;Using &lt;code&gt;&lt;footer&gt;&lt;/code&gt; as a page footer&lt;/h3&gt;
&lt;p&gt;As mentioned above &lt;code&gt;&lt;footer&gt;&lt;/code&gt; can’t contain the following elements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&lt;header&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;footer&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;section&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;article&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;aside&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;nav&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;hgroup&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This means unless your page footer is very simple (eg inline content like copyright info and a contact email address), you’ll have to use a &lt;code&gt;&lt;section&gt;&lt;/code&gt; instead. This is more restrictive than &lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#page-header" title="HTML5 structureheader, hgroup &amp; h1-h6 ・ @boblet | random notes"&gt;&lt;code&gt;&lt;header&gt;&lt;/code&gt;, which only forbids descendant &lt;code&gt;&lt;header&gt;&lt;/code&gt; and &lt;code&gt;&lt;footer&gt;&lt;/code&gt;&lt;/a&gt;s.&lt;/p&gt;
&lt;/del&gt;

&lt;ins id="ins-8" class="ins-block" datetime="2009-09-12T13:40:00+09:00"&gt;
&lt;h3 id="page-footer"&gt;Using &lt;code&gt;&lt;footer&gt;&lt;/code&gt; as a page footer&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3#page-footer"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;
&lt;p&gt;As mentioned above &lt;code&gt;&lt;footer&gt;&lt;/code&gt; now can’t contain the following elements (&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#page-header"&gt;the same as &lt;code&gt;&lt;header&gt;&lt;/code&gt;&lt;/a&gt;):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&lt;header&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;footer&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is more permissive than the earlier “copyright &amp; contact info only” version of &lt;code&gt;&lt;footer&gt;&lt;/code&gt;, but may still be too restrictive for a complex page footer. If you require nested sectioning elements with their own headers and footers use &lt;code&gt;&lt;section&gt;&lt;/code&gt; instead.&lt;/p&gt;
&lt;/ins&gt;

&lt;h3 id="outlines"&gt;Sectioning &lt;del datetime="2009-07-14"&gt;content, heading content&lt;/del&gt;&lt;ins id="ins-3" datetime="2009-07-14"&gt;&amp; heading elements,&lt;/ins&gt; and outlines&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3#outlines"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;p&gt;A new and important aspect of HTML5 is the &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#outline" title="4 The elements of HTML  HTML5"&gt;creation of outlines&lt;/a&gt; (think indented list) from an HTML5 page. The four elements &lt;a href="http://boblet.tumblr.com/post/130610820/html5-structure1" title="Random notes | Boblet - HTML5 structurediv, section and article"&gt;&lt;code&gt;&lt;section&gt;&lt;/code&gt;, &lt;code&gt;&lt;article&gt;&lt;/code&gt;&lt;/a&gt;, &lt;code&gt;&lt;nav&gt;&lt;/code&gt; and &lt;code&gt;&lt;aside&gt;&lt;/code&gt; are &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#sectioning-content-0" title="3 Semantics, structure, and APIs of HTML documents  HTML5"&gt;sectioning elements&lt;/a&gt;. They define the major ‘chunks of related content’ on a page, and their order and nesting dictate the relationship between these sections. They generally have a heading (&amp; possibly a footer)&lt;del datetime="2009-07-14"&gt;, and allow the author to &lt;em&gt;explicitly&lt;/em&gt; define&lt;/del&gt;&lt;ins id="ins-4" datetime="2009-07-14"&gt;. By using these elements semantically,&lt;/ins&gt; &lt;q cite="http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#sectioning-content-0"&gt;the scope of headings and footers&lt;/q&gt; and &lt;code&gt;&lt;address&gt;&lt;/code&gt; elements, or what content a contained &lt;code&gt;&lt;heading&gt;&lt;/code&gt;, &lt;code&gt;&lt;footer&gt;&lt;/code&gt; and &lt;code&gt;&lt;address&gt;&lt;/code&gt; applies to&lt;ins id="ins-5" datetime="2009-07-14"&gt;, automatically allows a meaningful outline of the page to be made&lt;/ins&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#heading-content-0" title="3 Semantics, structure, and APIs of HTML documents  HTML5"&gt;Heading elements&lt;/a&gt; include the standard &lt;code&gt;&lt;h1&gt;&lt;/code&gt; to &lt;code&gt;&lt;h6&gt;&lt;/code&gt; plus &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt;. The first heading of each section is used as the title of the section, and any subsequent headings (excluding those in the first &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt;) &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#headings-and-sections" title="4 The elements of HTML  HTML5"&gt;create an &lt;em&gt;implicit&lt;/em&gt; enclosing section in the outline&lt;/a&gt;. Together with sectioning elements these heading-generated sections define the outline of the document. Note that &lt;code&gt;&lt;header&gt;&lt;/code&gt; is not a sectioning or heading content element, and does not affect the creation of sections or their titles. Authors are &lt;q cite="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#headings-and-sections"&gt;encouraged to explicitly wrap sections in elements of sectioning content, instead of relying on the implicit sections generated by having multiple headings in one element of sectioning content&lt;/q&gt;.&lt;/p&gt;

&lt;p&gt;In the next exciting installment, we’ll &lt;em&gt;finally&lt;/em&gt; look at &lt;q cite="http://bit.ly/15QHw6"&gt;the document structures that fall out of the HTML5 spec&lt;/q&gt;. Sample templates and code examples ahoy! Also, thanks to the fine folk at &lt;a href="http://informationarchitects.jp/" title="Information Architects"&gt;Information Architects&lt;/a&gt;, whose &lt;a href="http://webtrendmap.com/" title="Web Trend Map"&gt;Web Trend Map&lt;/a&gt; is coming like Godzilla to Tokyo…&lt;/p&gt;

&lt;p&gt;Questions? Feedback? Mistakes? &lt;a href="http://twitter.com/home?status=%40boblet%20re%3A%20http%3A%2F%2Fbit.ly%2F1Ctq6%20" title="via the Twitter homepage"&gt;Let me know via Twitter&lt;/a&gt; (&lt;a href="http://twitter.com/boblet"&gt;@boblet&lt;/a&gt;)…&lt;/p&gt;

&lt;div id="changes" class="section"&gt;
&lt;h3&gt;Changes:&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3#changes"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;ins datetime="2009-07-13T17:45:00+09:00"&gt;&lt;em&gt;2009-07-13&lt;/em&gt; Added more detail to &lt;a href="#element-footer"&gt;&lt;code&gt;&lt;footer&gt;&lt;/code&gt;&lt;/a&gt; regarding page footers&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-07-14T12:35:00+09:00"&gt;&lt;em&gt;2009-07-14&lt;/em&gt; Moved &lt;a href="#ins-1"&gt;per-section &lt;code&gt;&lt;address&gt;&lt;/code&gt; use&lt;/a&gt; info out of &lt;a href="#element-footer"&gt;&lt;code&gt;&lt;footer&gt;&lt;/code&gt; description&lt;/a&gt;, added a section about &lt;a href="#page-footer"&gt;using &lt;code&gt;&lt;footer&gt;&lt;/code&gt; as a page footer&lt;/a&gt;, and improved the &lt;a href="#outlines"&gt;Sectioning &amp; heading elements, and outlines&lt;/a&gt; text&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-07-23T01:35:00+09:00"&gt;&lt;em&gt;2009-07-23&lt;/em&gt; Changed from HTML5 to HTML 5 etc.&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-09-12T13:02:00+09:00"&gt;&lt;em&gt;2009-09-12&lt;/em&gt; Changed back from HTML 5 to HTML5 etc :| Made major changes to &lt;code&gt;&lt;footer&gt;&lt;/code&gt; after &lt;a href="http://html5.org/tools/web-apps-tracker?from=3750&amp;to=3751"&gt;it’s role significantly changed recently&lt;/a&gt; (&lt;a href="#ins-6"&gt;1&lt;/a&gt;, &lt;a href="#ins-7"&gt;2&lt;/a&gt;, &lt;a href="#ins-8"&gt;3&lt;/a&gt;; important changes &lt;code&gt;&lt;mark&gt;&lt;/code&gt;ed with a green underline). Also added anchors to titles (on hover) and made a couple of small clarifications.&lt;/ins&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><link>http://boblet.tumblr.com/post/134732913</link><guid>http://boblet.tumblr.com/post/134732913</guid><pubDate>Fri, 03 Jul 2009 20:25:00 +0900</pubDate><category>semantic</category><category>html5</category><category>structure</category><category>html</category><category>nav</category><category>aside</category><category>figure</category><category>footer</category><category>outline</category></item><item><title>HTML5 structure—header, hgroup &amp; h1-h6</title><description>&lt;div&gt;
&lt;!-- wrapper for Tumblr --&gt;&lt;nav id="html5-articles"&gt;&lt;h3&gt;Other HTML 5 articles&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/60552152/html5" title="HTML5 id/class name cheatsheet・@boblet | random notes"&gt;HTML 5 id/class name cheatsheet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;HTML 5 structure…
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/130610820/html5-structure1" title="HTML5 structurediv, section &amp; article・@boblet | random notes"&gt;div, section &amp; article&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2" title="HTML5 structureheader, hgroup &amp; h1-h6・@boblet | random notes"&gt;header, hgroup &amp; h1-h6&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3" title="HTML5 structurenav, aside, figure, &amp; footer・@boblet | random notes"&gt;nav, aside, figure, &amp; footer&lt;/a&gt; (plus outlines)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/141239118/html5-structure4" title="HTML5 structureHTML4 and XHTML1 to HTML5・@boblet | random notes"&gt;HTML 4 and XHTML 1 to HTML 5&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://bit.ly/EgVcc" title="12 common problems with HTML 5 ・ @boblet | random notes"&gt;12 common problems with HTML 5&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/178852468/block-level-links" title="Block-level links, HTML5 and Firefox ・ @boblet"&gt;Block-level links, HTML5 &amp; Firefox&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/nav&gt;
&lt;/div&gt;

&lt;p&gt;In the previous article I discussed the &lt;a href="http://boblet.tumblr.com/post/130610820/html5-structure1" title="HTML5 structure&lt;div&gt;, &lt;section&gt; &amp; &lt;article&gt;・@boblet | random notes"&gt;differences between &lt;code&gt;&lt;div&gt;&lt;/code&gt;, &lt;code&gt;&lt;section&gt;&lt;/code&gt; and &lt;code&gt;&lt;article&gt;&lt;/code&gt;&lt;/a&gt;. The next pair of new HTML5 elements I’ll discuss are &lt;code&gt;&lt;header&gt;&lt;/code&gt; and &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li id="element-header"&gt;
&lt;strong&gt;&lt;code&gt;&lt;header&gt;&lt;/code&gt;&lt;/strong&gt;—a container element for a section’s introductory and navigational content. This &lt;q cite="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-header-element"&gt;typically contains the section’s heading (an &lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt; element or an &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt; element), but can also contain other content, such as a table of contents, a search form, or any relevant logos&lt;/q&gt;. Note that this element can be used in any section of the page (except a &lt;code&gt;&lt;footer&gt;&lt;/code&gt; or in another &lt;code&gt;&lt;header&gt;&lt;/code&gt;), and is not only for the ‘page header’ containing the logo etc. (&lt;a href="http://dev.w3.org/html5/markup/header.html" title="HTML5: header – header"&gt;W3C:HTML&lt;/a&gt;, &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-header-element" title="4 The elements of HTML  HTML5"&gt;WhatWG&lt;/a&gt;)&lt;/li&gt;
&lt;li id="element-hgroup"&gt;
&lt;strong&gt;&lt;code&gt;&lt;hgroup&gt;&lt;/code&gt;&lt;/strong&gt;—a specialised form of &lt;code&gt;&lt;header&gt;&lt;/code&gt; that must contain a &lt;em&gt;group&lt;/em&gt; (at least two) of &lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt; elements, and nothing else. It is for grouping a title with subtitle(s). Make sure to maintain &lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt; hierarchy—think of a nested outline. (&lt;a href="http://dev.w3.org/html5/markup/hgroup.html" title="HTML5: hgroup – heading group"&gt;W3C:HTML&lt;/a&gt;, &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-hgroup-element" title="4 The elements of HTML  HTML5"&gt;WhatWG&lt;/a&gt;)&lt;/li&gt;
&lt;li id="element-h1-h6"&gt;
&lt;strong&gt;&lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt;&lt;/strong&gt;—the heading elements from HTML4 are back and basically unchanged(&lt;a href="#html5-heading-levels"&gt;&lt;sup&gt;*&lt;/sup&gt;&lt;/a&gt;), except for HTML5’s stronger guidance on using them correctly (ie don’t skip levels). Note that a single &lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt; doesn’t require a &lt;code&gt;&lt;header&gt;&lt;/code&gt; wrapper. (&lt;a href="http://dev.w3.org/html5/markup/h1.html" title="HTML5: h1 – heading (level 1)"&gt;W3C:HTML&lt;/a&gt;, &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements" title="4 The elements of HTML  HTML5"&gt;WhatWG&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;While &lt;code&gt;&lt;header&gt;&lt;/code&gt; and &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt; are easy to confuse, remember that &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt; can only contain a ‘&lt;em&gt;heading group&lt;/em&gt;’ of &lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt; elements, and is for &lt;q cite="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-hgroup-element"&gt;subtitles, alternative titles, or taglines&lt;/q&gt;. &lt;code&gt;&lt;header&gt;&lt;/code&gt; can contain a &lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt; element or &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt; &lt;em&gt;in addition to&lt;/em&gt; other elements that introduce the section. If there’s no need for an &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt; subtitle or other &lt;code&gt;&lt;header&gt;&lt;/code&gt; content, just use the relevant &lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt; element.&lt;/p&gt;

&lt;h3 id="example-title"&gt;An article with one title&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#example-title"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;!-- &lt;article&gt;
    &lt;h1&gt;Article title&lt;/h1&gt;
    &lt;p&gt;Content…&lt;/p&gt;
&lt;/article&gt; --&gt;

&lt;pre&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment"&gt;&lt;!-- Title h1 only—no hgroup or header needed --&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;article&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
&lt;span class="meta meta_tag meta_tag_other meta_tag_other_html"&gt;&lt;/article&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id="example-header"&gt;A article header with title and metadata&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#example-header"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;!--
&lt;article&gt;
    &lt;header&gt;
        &lt;h1&gt;Article title&lt;/h1&gt;
        &lt;p&gt;(&lt;time datetime="2009-07-13"&gt;13th July, 2009&lt;/time&gt;)&lt;/p&gt;
    &lt;/header&gt;
    &lt;p&gt;Content…&lt;/p&gt;
&lt;/article&gt; --&gt;

&lt;pre&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment"&gt;&lt;!-- Wrapping title and metadata in header --&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;article&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;header&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;(&lt;span class="meta_tag"&gt;&lt;time &lt;span class="meta_attribute-with-value"&gt;datetime=&lt;span class="string"&gt;"2009-07-13"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;13th July, 2009&lt;span class="meta_tag"&gt;&lt;/time&gt;&lt;/span&gt;)&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/header&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/article&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id="example-hgroup"&gt;An article with an &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt;-enclosed subtitle&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#example-hgroup"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;!-- &lt;article&gt;
    &lt;hgroup&gt;
        &lt;h1&gt;Article title&lt;/h1&gt;
        &lt;h2&gt;Article subtitle&lt;/h2&gt;
    &lt;/hgroup&gt;
    &lt;p&gt;Content…&lt;/p&gt;
&lt;/article&gt; --&gt;

&lt;pre&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment"&gt;&lt;!-- Title h1 and subtitle h2 in hgroup --&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;article&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;hgroup&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;h2&gt;&lt;/span&gt;Article subtitle&lt;span class="meta_tag"&gt;&lt;/h2&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/hgroup&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/article&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id="example-header-hgroup"&gt;A article with title, subtitle and metadata&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#example-header-hgroup"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;!--
&lt;article&gt;
    &lt;header&gt;
        &lt;hgroup&gt;
            &lt;h1&gt;Article title&lt;/h1&gt;
            &lt;h2&gt;Article subtitle&lt;/h2&gt;
        &lt;/hgroup&gt;
        &lt;p&gt;(&lt;time datetime="2009-07-13"&gt;13th July, 2009&lt;/time&gt;)&lt;/p&gt;
    &lt;/header&gt;
    &lt;p&gt;Content…&lt;/p&gt;
&lt;/article&gt; --&gt;

&lt;pre&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment"&gt;&lt;!-- A heading which uses header and hgroup --&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;article&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;header&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;hgroup&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;h2&gt;&lt;/span&gt;Article subtitle&lt;span class="meta_tag"&gt;&lt;/h2&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;/hgroup&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;(&lt;span class="meta_tag"&gt;&lt;time &lt;span class="meta_attribute-with-value"&gt;datetime=&lt;span class="string"&gt;"2009-07-13"&lt;/span&gt;&lt;/span&gt;&gt;&lt;/span&gt;13th July, 2009&lt;span class="meta_tag"&gt;&lt;/time&gt;&lt;/span&gt;)&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/header&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/article&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id="example-usage"&gt;Some examples of &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt; use&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#example-usage"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;div class="figure"&gt;
&lt;img src="http://oli-studio.com/html5/hgroup-subtitle.png" width="500" height="136" alt="hgroup example usage; an article title with an alternative title"/&gt;&lt;p class="legend"&gt;An article title with an alternative title&lt;/p&gt;
&lt;/div&gt;

&lt;div class="figure"&gt;
&lt;img src="http://oli-studio.com/html5/hgroup-tagline.png" width="327" height="99" alt="hgroup example usage; a site name with tagline (branding phrase)"/&gt;&lt;p class="legend"&gt;A site name with tagline (branding phrase)&lt;/p&gt;
&lt;/div&gt;

&lt;div class="figure"&gt;
&lt;img src="http://oli-studio.com/html5/hgroup-longtitle.png" width="576" height="64" alt="hgroup example usage; a long article title split into title and subtitle"/&gt;&lt;p class="legend"&gt;A long article title split into title and subtitle&lt;/p&gt;
&lt;/div&gt;

&lt;h3 id="page-header"&gt;Using &lt;code&gt;&lt;header&gt;&lt;/code&gt; for the page header&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#page-header"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;p&gt;It’s possible to use &lt;code&gt;&lt;header&gt;&lt;/code&gt; for the page header (and &lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3#page-footer" title="HTML5 structurenav, aside, figure, &amp; footer ・ @boblet | random notes"&gt;&lt;code&gt;&lt;footer&gt;&lt;/code&gt; for the page footer&lt;/a&gt; too). However, while &lt;code&gt;&lt;header&gt;&lt;/code&gt; can contain sectioning elements, it can’t contain &lt;code&gt;&lt;header&gt;&lt;/code&gt; or &lt;code&gt;&lt;footer&gt;&lt;/code&gt;. For a complex page header or footer that requires nested sectioning elements with their own headers and footers use &lt;code&gt;&lt;section&gt;&lt;/code&gt; instead.&lt;/p&gt;

&lt;h3 id="html5-heading-levels"&gt;HTML5-style heading element levels&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#html5-heading-levels"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;

&lt;p&gt;In HTML authors should use the heading elements &lt;code&gt;&lt;h1&gt;&lt;/code&gt;-&lt;code&gt;&lt;h6&gt;&lt;/code&gt; rationally—using the levels to indicate nesting and not skipping levels—but this can be a problem in long or complex documents. Also there are some documents that actually need more than six levels of headings! (actually I always wondered what became of poor &lt;code&gt;&lt;h7&gt;&lt;/code&gt;-&lt;code&gt;&lt;h9&gt;&lt;/code&gt; :) In HTML5 there are now two ways we can use headings;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;as in HTML4 with &lt;code&gt;&lt;h1&gt;&lt;/code&gt; being the page or article title (or both—nothing says you must only have one &lt;code&gt;&lt;h1&gt;&lt;/code&gt; element) and subsequent headings increasing as required&lt;/li&gt;
&lt;li&gt;&amp; a new way where &lt;em&gt;each section begins with &lt;code&gt;&lt;h1&gt;&lt;/code&gt;&lt;/em&gt; again&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This new way is potentially much easier as most sections will only need one heading element, which means &lt;code&gt;&lt;h1&gt;&lt;/code&gt; (almost) everywhere. However current browsers won’t interpret this correctly (eg when CSS is disabled), so unless you actually need more than six levels it’s probably best to stick with the old style for the present.&lt;/p&gt;

&lt;h4 id="example-html4-headings"&gt;Example of nesting heading element levels&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#example-html4-headings"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h4&gt;

&lt;!--
&lt;article&gt;
    &lt;hgroup&gt;
        &lt;h1&gt;Article title&lt;/h1&gt;
        &lt;h2&gt;Article subtitle&lt;/h2&gt;
    &lt;/hgroup&gt;
    &lt;section&gt;
        &lt;h3&gt;Section title&lt;/h3&gt;
        &lt;p&gt;Content…&lt;/p&gt;
            &lt;section&gt;
                &lt;h4&gt;Subsection title&lt;/h4&gt;
                &lt;p&gt;Content…&lt;/p&gt;
            &lt;/section&gt;
    &lt;/section&gt;
&lt;/article&gt; --&gt;

&lt;pre&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment"&gt;&lt;!-- Standard nesting of heading elements (uses h1 to h4) --&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;article&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;hgroup&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;h2&gt;&lt;/span&gt;Article subtitle&lt;span class="meta_tag"&gt;&lt;/h2&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/hgroup&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;section&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;h&lt;strong&gt;3&lt;/strong&gt;&gt;&lt;/span&gt;Section title&lt;span class="meta_tag"&gt;&lt;/h&lt;strong&gt;3&lt;/strong&gt;&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;section&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h&lt;strong&gt;4&lt;/strong&gt;&gt;&lt;/span&gt;Subsection title&lt;span class="meta_tag"&gt;&lt;/h&lt;strong&gt;4&lt;/strong&gt;&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/section&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/section&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/article&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;h4 id="example-html5-headings"&gt;Example of new-style heading element levels&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#example-html5-headings"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h4&gt;

&lt;!-- 
&lt;article&gt;
    &lt;hgroup&gt;
        &lt;h1&gt;Article title&lt;/h1&gt;
        &lt;h2&gt;Article subtitle&lt;/h2&gt;
    &lt;/hgroup&gt;
    &lt;section&gt;
        &lt;h1&gt;Section title&lt;/h1&gt;
        &lt;p&gt;Content…&lt;/p&gt;
            &lt;section&gt;
                &lt;h1&gt;Subsection title&lt;/h1&gt;
                &lt;p&gt;Content…&lt;/p&gt;
            &lt;/section&gt;
    &lt;/section&gt;
&lt;/article&gt; --&gt;

&lt;pre&gt;&lt;code&gt;&lt;span class="text_html"&gt;&lt;span class="comment"&gt;&lt;!-- HTML5-style heading levels—new section resets (uses h1 and h2) --&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;article&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;hgroup&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;h1&gt;&lt;/span&gt;Article title&lt;span class="meta_tag"&gt;&lt;/h1&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;h2&gt;&lt;/span&gt;Article subtitle&lt;span class="meta_tag"&gt;&lt;/h2&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/hgroup&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;section&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;h&lt;strong&gt;1&lt;/strong&gt;&gt;&lt;/span&gt;Section title&lt;span class="meta_tag"&gt;&lt;/h&lt;strong&gt;1&lt;/strong&gt;&gt;&lt;/span&gt;
    &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;section&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;h&lt;strong&gt;1&lt;/strong&gt;&gt;&lt;/span&gt;Subsection title&lt;span class="meta_tag"&gt;&lt;/h&lt;strong&gt;1&lt;/strong&gt;&gt;&lt;/span&gt;
        &lt;span class="meta_tag"&gt;&lt;p&gt;&lt;/span&gt;Content…&lt;span class="meta_tag"&gt;&lt;/p&gt;&lt;/span&gt;
      &lt;span class="meta_tag"&gt;&lt;/section&gt;&lt;/span&gt;
  &lt;span class="meta_tag"&gt;&lt;/section&gt;&lt;/span&gt;
&lt;span class="meta_tag"&gt;&lt;/article&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In the next exciting installment, the last of the &lt;a href="http://boblet.tumblr.com/post/134732913/html5-structure3" title="HTML5 structure&lt;nav&gt;, &lt;aside&gt;, &lt;figure&gt;, &amp; &lt;footer&gt;・@boblet | random notes"&gt;structural tags and a look at sectioning elements and outlines&lt;/a&gt;…&lt;/p&gt;

&lt;p&gt;Questions? Feedback? Mistakes? &lt;a href="http://twitter.com/home?status=%40boblet%20re%3A%20http%3A%2F%2Fbit.ly%2F19xgBU%20" title="via the Twitter homepage"&gt;Let me know via Twitter&lt;/a&gt; (&lt;a href="http://twitter.com/boblet"&gt;@boblet)&lt;/a&gt;…&lt;/p&gt;

&lt;div id="changes" class="section"&gt;
&lt;h3&gt;Changes:&lt;mark&gt;&lt;a href="http://boblet.tumblr.com/post/134276674/html5-structure2#changes"&gt;#&lt;/a&gt;&lt;/mark&gt;
&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;ins datetime="2009-07-07T13:35:00+09:00"&gt;&lt;em&gt;2009-07-07&lt;/em&gt; Added links to some other HTML5 articles I’ve written&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-07-13T12:15:00+09:00"&gt;&lt;em&gt;2009-07-13&lt;/em&gt; Added text about &lt;a href="#page-header"&gt;using &lt;code&gt;&lt;header&gt;&lt;/code&gt; as the page header&lt;/a&gt; and improved &lt;code&gt;&lt;header&gt;&lt;/code&gt;’s description&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-07-14T11:15:00+09:00"&gt;&lt;em&gt;2009-07-14&lt;/em&gt; Added new &lt;a href="#example-header"&gt;&lt;code&gt;&lt;header&gt;&lt;/code&gt;&lt;/a&gt; &amp; &lt;a href="#example-header-hgroup"&gt;&lt;code&gt;&lt;header&gt;&lt;/code&gt; + &lt;code&gt;&lt;hgroup&gt;&lt;/code&gt;&lt;/a&gt; code examples, and removed the unnecessary wrapping &lt;code&gt;&lt;header&gt;&lt;/code&gt; in several code examples (&lt;a href="#example-hgroup"&gt;1&lt;/a&gt;, &lt;a href="#example-html4-headings"&gt;2&lt;/a&gt;, &lt;a href="#example-html5-headings"&gt;3&lt;/a&gt;)&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-07-22T18:15:00+09:00"&gt;&lt;em&gt;2009-07-22&lt;/em&gt; Added missing &lt;code&gt;&lt;code&gt;&lt;/code&gt; elements that had prevented the example code coloring from working for some examples after a CSS change. Changed from HTML5 to HTML 5 etc.&lt;/ins&gt;&lt;/li&gt;
&lt;li&gt;&lt;ins datetime="2009-09-12T09:35:00+09:00"&gt;&lt;em&gt;2009-09-12&lt;/em&gt; Changed back from HTML 5 to HTML5 etc :| Also added anchors to titles (on hover) and made a couple of small clarifications.&lt;/ins&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><link>http://boblet.tumblr.com/post/134276674</link><guid>http://boblet.tumblr.com/post/134276674</guid><pubDate>Fri, 03 Jul 2009 03:08:00 +0900</pubDate><category>header</category><category>heading</category><category>hgroup</category><category>html</category><category>html5</category><category>semantic</category><category>structure</category></item></channel></rss>
