Thursday 23 September 2010

First HTML 5 example

HTML5 is a standard for structuring and presenting content on the World Wide Web. The new standard incorporates features like video playback and drag-and-drop that have been previously dependent on third-party browser plug-ins such as Adobe Flash and Microsoft Silverlight.

Here I am writting a sigle line of code (HTML5) to embed a video in your html page.

<html>
<body>

<video id="v1" src="http://htmlfive.appspot.com/media/billyBrowsers.ogg" controls></video>

</body>
</html>

simple video editor running in Safari

HTML5 specifies scripting application programming interfaces (APIs), some of them are;

  • The canvas element for immediate mode 2D drawing. See Canvas 2D API Specification 1.0 specification
  • Timed media playback
  • Offline storage database (offline web applications)
  • Document editing
  • Drag-and-drop
  • Cross-document messaging
  • Browser history management
  • MIME type and protocol handler registration.
  • Microdata
  • Geolocation
  • Web SQL Database, a local SQL Database
  • The Indexed Database API, a indexed hierarchical key-value store (formerly WebSimpleDB)