HTML5 101


Published on

HTML5 - what is it? Why is it important?

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

HTML5 101

  1. 1. <HTML5><br />What is it?<br />Why is it important?<br />
  2. 2. First off, what is HTML?<br />HTML stands for Hyper Text Markup Language<br />It is a language that allows people to create structured documents by denoting structural elements such as titles, headings and paragraphs using HTML ‘tags’<br />Here are a few HTML tags:<br /><title><br /><body><br /><p><br /><a><br />In simple terms, think of it as the language that web browsers understand that tells them how to display content on web pages<br />
  3. 3. W3C<br />The World Wide Web Consortium (W3C) is an organisation that is responsible for defining web standards – including the HTML standard<br />They maintain the standards which browsers (should) comply with in order that they correctly display web content - should, because no two browsers are the same…which is the cause of so many headaches for web developers!<br />Over a number of years, HTML has developed and new versions of the HTML standard have been published<br />The latest version is version 5<br />
  4. 4. Key features of HTML5<br />There are 4 key features of HTML5 that make it stand out<br />The canvas elementcan be used for rendering graphs, game graphics or other visual images on the fly.<br />All done without having to rely on plug-ins. The possibilities are endless.<br />Embedding video used to be impossible without third-party plugins such as Apple QuickTime or Adobe Flash.<br />Thanks to the video element, now it’s possible. It is intended by its creators to become the new standard way to show video online.<br />Sniffing a user’s location is not a new thing on the web. In fact, most websites already to this by means of IP address detection. But this is not always reliable, so HTML5’s geolocation is an alternate method of correctly pinpointing a user’s location. The new idea is to get the location information from WiFi towers and GPS.<br />The offline web applications enable users to continue interacting with web applications and documents even when their network connection is unavailable. The user can, for instance, access email locally without having to connect to the internet or install an external client.<br />Infographic from<br />
  5. 5. HTML5 graphics (canvas)<br />Try a few of these out (in Firefox!) to see the possibilities with HTML5<br /><br /><br /><br /><br /><br />Although much of the above can be achieved with Flash – the important point is that no browser plugins (of which Flash is one) are required with HTML5<br />This is important when you consider, for example, that Flash isn’t available for some devices like the iPhone<br />
  6. 6. HTML5 graphics (canvas)<br />The band Arcade Fire recently released a very impressive HTML5 / Google Maps mashupfor their single The Wilderness Downtown<br />Try this in Google Chrome (make sure you’ve closed all your other apps first!)<br /><br />
  7. 7. Does HTML5 replace Flash?<br />Not really…here’s a nice little summary…<br />
  8. 8. HTML5 and SEO<br />HTML5 will change the way search engines index content<br />It introduces new tags with semantic meaning, such as <article>, <nav>, <footer><br />Search engines will be able to use this new semantic markup to treat different parts of the page differently – perhaps <article> content will be deemed more important than <footer> content?<br />So as search engines start to use these semantic tags in their algorithms we may benefit by integrating them into our sites<br />
  9. 9. HTML5 and SEO<br />Not only that, content that might once have been built in Flash and can in future be built in an HTML5 <canvas> will be more easily ‘indexable’ by search engines<br />So more keyword-rich content could be found by the search engine and attributed to our sites<br />Similarly, with the ability to annotate <video> elements with standard HTML markup, these annotations will also be indexable<br />As opposed to being embedded within the video and therefore unavailable to search engine spiders<br />
  10. 10. Geolocation<br />Could be used, for example, to tell you where your nearest Tesco store is without you having to enter your address<br />Or perhaps find people with similar interests who are near you<br />Imagine all the Google ads you see are for shops within a 10 minute walk from where you sit! If you so consent, you can provide your location information via your IP address and WiFi access point data<br />
  11. 11. Geolocation<br />Try this<br />Can choose to opt-in to share location<br />
  12. 12. Video<br />At the moment, there are a number of ways to play video on web pages – most of which require a plugin<br />HTML5 introduces the <video> tag for playing videos without the need for browser plugins<br />Videos can have styled annotations created with simple HTML elements such as the demo shown here (half way down the page):<br /><br />Other useful links:<br /><br />
  13. 13. So can I put videos in email content?<br />Sadly, that is a way off yet. Not all email clients support the new <video> tag<br />Some clients display a ‘fallback’ image<br />See for more info<br />
  14. 14. Offline features<br />The offline features of HTML5 mean that websites and data associated with them can be stored locally<br />HTML5 gives developers the ability to create and store data in local SQL databases<br />So web applications could be created that still work when you’re disconnected from the internet<br />
  15. 15. HTML5 and forms<br />The HTML5 standard introduces loads of new data entry input types<br />This means the browser can do lots of stuff that normally needs to be custom-written, like validate an email address or a date<br />Using a combination of HTML5 and CSS, this will mean we’ll be able to highlight invalid form fields without lots of extra coding<br />More info:<br /><br /><br />
  16. 16. Browser support for HTML5<br />HTML5 is still in its infancy, but many current browsers support some of its features<br />The chart shows you how much each browser supports all of the HTML5 features<br />
  17. 17. Conclusion<br />It’s early days for HTML5 at the moment <br />Browser support will continue to improve – Microsoft’s new IE9 browser (currently in public beta) will bring it’s support up to 60% or more<br />We could start to build on some of it’s new features, but will (for the moment) have to provide alternative content that is backwardly compatible with non-supporting browsers<br />
  18. 18. Useful / interesting links<br />Wikipedia article on HTML5<br /><br />Demos <br /><br />Lots of useful HTML5 info<br /><br />Which browsers support what features of HTML5 ?<br /><br /><br /><br />
  19. 19. For more information<br />Matt Hardy<br />Digital Director<br />+44 (0)1225 476 066<br /><br />@mcrilf<br />@realadventure<br />