Posted on May 26th, 2010 by Ian Devlin
The top 10 HTML5 sites dissected
HTML5 might be a new and emerging technology – heck, the specification isn’t even completely decided yet – but there are plenty of websites out there that are already taking advantage of HTML5 features, and have been for some time. I converted my personal site to be HTML5 compliant back in December 2009.
There are several HTML5 gallery sites currently knocking about (HTML5 Gallery and 101 Best HTML5 Sites to name just two). Here, I’m going to examine 10 HTML5 websites and briefly describe what new features they are using. Some of these sites are favourites of mine, others have been included because of the new HTML5 features they take advantage of.
Before I do so, here’s a quick list of each of the new HTML5 features and elements that are used in the following sites:
| Feature | Description |
|---|---|
<!DOCTYPE html> |
Informs the browser that this page is written in HTML5 and should conform to that specification |
| Drag and drop API | Defines a JavaScript API that allows items to be dragged onto the browser and dropped |
| File API | Defines a JavaScript API for representing file objects in web applications as well as selecting them and accessing their data |
| Offline Web Applications | Defines a method that allows web applications to store information on a local system, so that it can be used in an offline mode |
| Element | Description |
|---|---|
<article> |
This represents a section of content that forms an independent part of a document or site (and is intended to be independently distributable or reusable), for example a magazine article or a blog entry |
<canvas> |
This can be used to render graphics on the fly via JavaScript |
<figure> |
Used to annotate illustrations, photos etc, optionally with a caption, which can be moved away from the main flow of the document without affecting it’s meaning |
<footer> |
This element represents the footer of a section, which has probably been started with a header tag, but doesn’t have to |
<header> |
Represents the header of a section. Can be used more than once in a document |
<hgroup> |
A special form of heading that can contain either a single or a group of <h1> – <h6> elements and nothing else |
<input type='email'> |
This indicates that the <input> field contains an email, or a list of email addresses |
<nav> |
Used to enclose navigational blocks, a section of a document that links to other documents or to parts within the document itself |
<section> |
Represents a section of a document, typically with a title or a heading. This doesn’t replace the div element, and is only appropriate if there is a natural heading for it |
<small> |
Indicates side comments and small print. Not new to HTML but redefined in HTML5 |
1. Analog
Analog is a small web design company with an aesthetically pleasing website. This site uses the HTML5 doctype and the <header> element to define the header, which contains the Analog logo and the blurb at the top, contained in <h1> and <h2> elements respectively. It also makes use of the <section> element to enclose each separate section within the page. The <figure> element encloses the diagram halfway down the page, which fulfills the requirement for this element by not taking away any meaning from the document should it be removed.
The <footer> element contains the usual type of information found in a footer (copyright, contact information) but also contains a neat little gem: hold down the G key when viewing the Analog homepage and you’ll see a grid overlayed on the site, which beautifully illustrates how the designers laid out the page using the ‘rule of thirds’. A nice little touch.
2. Google
You may be surprised to hear the Google website also uses HTML5. As with all HTML5 sites, it uses the doctype but it also takes advantage of the fact that, in a HTML5 document, you don’t need to specify the type attribute for <style> and <script> elements anymore, as they default to text/css and text/javascript respectively.
Google also make use of the <small> element which is used to indicate a side comment or something in small print. Here, Google use it to contain the ▼ character in the top navigation panel. Interestingly, Google doesn’t make use of the <footer> even though there is a <span> used for that purpose.
3. Kate Humble
The website of Kate Humble, wildlife TV presenter for the BBC, is also coded in HTML5. As well as using the doctype and taking advantage of the default values of the <style> and <script> elements, the site also has a very clean HTML5 structure layout.
The <header> is made up of the <hgroup> element which contains a <h1> and a <h2> to enclose separate headings. Within this is also the <nav> element that is used to enclose the navigation for the website. The <section> element is then used throughout the document to contain standalone sections. Some of these have natural headings which are contained within the <header> and some also make use of the <article> element to enclose separate articles within a <section>. Finally the <footer> is put to good use to contain links to all the charities that Kate supports.
Interestingly, this site is written in Wordpress which shows that there are HTML5 themes out there and being used already.
4. Creative Pony
Creative Pony has been included for it’s simple and yet wonderful usage of the <canvas> element to animate the grass. The code on this page is short, and I love the site’s minimalist look. Other than the doctype, no HTML5 elements are used, and the <canvas> element is created through JavaScript. But it’s striking.
I won’t go into the code that draws and animates the grass, as it’s quite complicated and goes outside the scope of this blog. Suffice to say it’s a good example of how the <canvas> element can be deployed.
5. Font Dragr
I have included Font Dragr, which is web application for testing custom fonts, because it shows how HTML5 drag and drop can be put to great use. This application accepts fonts in TTF, OTF or SVG format, and only works in Firefox 3.6+so I suggest you load it up in that browser and get dragging!
Once you drag a font into the font window, the text to the right is automatically updated to use the typeface you dragged in. Not only does this application use the HTML5 drag and drop API, it also makes use of offline storage. This allows the application to run offline (you may have seen a box at the top of your window asking for permission to store stuff). It also stores the file API for accessing the font file that was “dragged and dropped”.
The contenteditable attribute is set to true so that the text to be tested can be edited – you can even cut and paste it! .
6. Steal This Footage
On first glance Steal This Footage may sound like an illegal video-sharing site and you may wonder why on Earth am I including it here. I assure you it’s completely legal and I’m including it because it makes wide use of video, and one of the formats it uses is HTML5. You need to browse the archive to get to the videos and choose one for it to play. The player features a fallback mechanism and enables the use of three players: the HTML5 video element, the Cortado Java applet and Flash. If your browser supports HTML5 video then this is the player that will be chosen; if not, the fallback options come to the rescue.
7. flek
The website of flek, a software and design company based in New York, is again clean, minimalist and coded in HTML5. The markup is clean, tidy and logical. It makes use of the doctype to indicate HTML5, and <header> and <nav> elements to define the heading and navigation (which in this case is a simple email link).
The content is tidily enclosed in <section> elements, which are displayed using JavaScript when the appropriate link is clicked. The document finishes with a <footer> element, which contains the copyright information and another email link.
8. Piotr Petrus
The personal website of Piotr Petrus, a front-end engineer and user interface designer from Poland, is another good example of a clean HTML5 layout married with tidy source code. In fact, the code on this type of site very useful for the beginner who is interested in seeing how a HTML5 site is laid out. The main <header> contains a <hgroup> element that contains the site title, amongst other things. Also note that the <header> has been given a unique id for styling purposes.
But the main reason I chose this site is because of it’s use of <section>, <article>, and <figure> elements in the portfolio, which truly show how these particular elements can be used within a HTML5 document. Each row is enclosed within a <section> element, which contains two portfolio entries, each of which is contained within an <article> element that comprises of a <header> for the title and link, a <figure> element that contains a screenshot image of the portfolio item followed by actual text content. There is also a <small> element used at the very end, telling spammers that they may not hear from him.
9. Colosseo Type
Colosseo Type is described as an artistic endeavour to reimagine the Colosseum in type. It’s a bizarre and fascinating project, but we’re more interested in the fact that the site is coded in HTML5 (sorry Cameron). My heart jumped when I first opened the page as there’s a video, but alas it doesn’t attempt to use the <video> element, rather an embedded Vimeo video. No matter, we shall soldier on as it has other HTML5 features.
Once again it is a fine example of a neat HTML5 structured document. It makes use of the <header> element to contain the logo and non-HTML5 video, and then proceeds to use the <article> element to enclose <section>s, <header>s, and <figures> where appropriate. It also rounds the document off with a <footer> element that contains copyright and contact information. Note that it differs from Piotr’s site above in that the <section> elements enclose the <article> ones, rather than the other way around. This is allowed as long as it semantically makes sense, which it does here.
10. Ian Devlin
Yes this is my own personal website and whilst I hesitated over whether to include it, I had no choice in the end as I was unable to find another site that makes use of a key HTML5 feature, which is the new input elements and attributes that can be used in forms.
The first <input> is a standard text one, but is uses the placeholder attribute which allows you to specify some placeholder text to automatically insert into the <input> field, and also the autofocus attribute which tells the browser to focus on this particular field on load. It also uses the <input type='email'> element which tells the browser that you’re seeking an email address.
Tags: html5
Posted in: Real World Computing
Follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.
16 Responses to “ The top 10 HTML5 sites dissected ”
Leave a Reply
Authors
- Barry Collins
- Chris Brennan
- Christine Horton
- Darien Graham-Smith
- Dave Stevenson
- Davey Winder
- David Bayon
- David Fearon
- Ewen Rankin
- Ian Devlin
- Jon Honeyball
- Jonathan Bray
- Kevin Partner
- Mike Jennings
- Nicole Kobie
- Sasha Muller
- Steve Cassidy
- Stewart Mitchell
- Stuart Turton
- Tim Danton
- Tom Arah
Categories
- About the bloggers
- Android App of the Week
- cloud computing
- Green
- Hardware
- How To
- iPhone App of the Week
- Just in
- Microsoft Office 2010
- Newsdesk
- Online business
- Random
- Rant
- Real World Computing
- Software
- View from the Labs
- Windows 7
- Windows 8
Archives
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
advertisement












May 26th, 2010 at 5:16 pm
Ok I just had a look at the pony site that had the animated grass on my iPhone. It was very slow and jerky and not that impressive. I could have wrote it in Silverlight fairly easily. Now I haven’t used it on a desktop yet to see the performance but it’s not a compelling argument Steve jobs has put forward. How would you say this actually competes performance wise with Flash/Silverlight
May 26th, 2010 at 7:11 pm
Really? This article is not what I expected. I’ve seen some incredible HTML5 sites, none of which have anything to do with the tidiness of the source code. This would be better titled the 10 most uninteresting HTML5 sites.
May 26th, 2010 at 9:27 pm
Well, it’s what I expected from an article that said “… others have been included because of the new HTML5 features they take advantage of”
And tidiness of the source code is important – it’s called maintainability.
May 27th, 2010 at 12:29 am
On the basis of what i’ve seen here i’m not sure flash has that much to be worried about.
to be honest i’ve never understood why people attach themselves to such utterly lost causes as html5, but as sad as it is, there must be some psychological payoff.
May 27th, 2010 at 12:31 am
oh and btw, google pacman wasn’t html5 – it was actually done with js and flash.
May 27th, 2010 at 5:08 am
“H” is pronounced “Aitch” not “Haitch”
Therefore it is “an HTML” not “a HTML”
May 27th, 2010 at 9:31 am
Thanks Ian. These are great real world examples of how to use the new features that HTML5 introduces. I always fidn it much easier to learn new things when I’m presented with a real world example rather than some theoretical discussion how to use some thing.
May 27th, 2010 at 9:51 am
@Muck Personally I haven’t performed any speed testing between HTML5, Flash and Silverlight so am unable to give a definitive answer. I have also viewed them from a desktop and not from any handheld device. Since you mention an iPhone, as we know Flash isn’t available for it, is Silverlight even an option for the iPhone?
@RUKidding it depends on your interpretation of the word “best”. The intention of the blog was to show some sites that I like, and others were included simple because of the HTML5 features that they use, as Adrian pointed out. As a developer, tidy source code is quite important to me, and I feel that for other developers who want to see how HTML5 is currently being used, looking at source code that can be easily followed and understood is quite important. It’s all subjective anyway.
@joshrenc I never said that HTML5 is going to kill Flash, in fact I barely mentioned Flash at all. Personally I believe that both will exist alongside one another and happily co-exist. I’m also well aware that Google’s recent Pacman game wasn’t written in HTML5, nor did I say that it was.
@Chris It probably has something to do with the fact that I’m Irish, where we pronouce it with the ‘h’ at the beginning. I won’t make any apologies for that.
May 27th, 2010 at 12:51 pm
Ian, don’t worry about these comments.
Most people don’t know how to shut up, and would rather appear as idiots instead.
Great article, great examples. Thank you.
May 27th, 2010 at 10:03 pm
No sadly Silverlight does not work on the iPhone either. I’ve since used the pony site on a laptop using the Chrome browser. Interestingly it rendered differently to Safari Mobile producing twice as many blades of grass and did blow in the wind fairly smooth. What Steve Jobs doesn’t tell you is that the canvas tag of HTML5 is no substitute for Flash. It ran at about 2 frames a second maximum on the iPhone and it’s a simple animation.
I’d like to point out that I wasn’t attacking your choice of sites. I’m just not overly impressed with HTML5. Most of the tags are just tidying up things that you do in HTML4 already which is not a bad thing maybe. Just not wow like the coverage that HTML5 is being given.
Having said that I will now start adding a few HTML5 tags into my work
May 27th, 2010 at 10:26 pm
Also the Lifter game for some reason will not work on the iPhone. I really feel that Steve Jobs has spouted an utter load of nonsense. It has nothing to do with the Flash technology. Its the iPhone processor that isn’t capable!
May 27th, 2010 at 11:10 pm
Many thanks for this- an excellent post introducing the new features of html5 – great for some inspiration! Keep it coming!
It does make html look like it can create some very plain uncluttered, but highly functional sites – something I love.
And @muck – I half agree – html 5 is not yet a perfect replacement for flash, but it is certainly a step in the right direction! The flash format has no future – like vhs, it is a doomed format. Anything that requires a 2MB file to do what html5 can do in 10kb of code is flawed… (and lets be honest, flash is on version 10… it does have a few years!)
May 28th, 2010 at 7:30 am
“html 5 is not yet a perfect replacement for flash, but it is certainly a step in the right direction!”
I have a question what apple can do with html5 via which they want to compete with adobe. I’m puzzled by article like this.
http://www.ifunia.com/ipad-column/on-apple-ipad-html5-and-flash.html
May 28th, 2010 at 7:16 pm
Mobile HTML5 sites: http://servletsuite.com/geomessage
May 29th, 2010 at 12:17 pm
@joshrenc I don’t have Flash installed on my iPhone or my desktop and the Google Pacman loads and runs on both – although, not having a keyboards, I can’t actually do anything with it, once it has started the iPhone.
June 1st, 2010 at 12:51 pm
If You like to base your work on Flash, or SilverLight or HTML5 , or some clever mixture of Yours, just do it. Do we need to know about it?
PS: This article is interesting , although somewhat “light” IT reading, but with a focus. As a such always welcome to IT-PRO, sometimes off-target articles.