{"id":868,"date":"2010-07-13T09:48:43","date_gmt":"2010-07-13T08:48:43","guid":{"rendered":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/?p=868"},"modified":"2010-07-13T09:48:43","modified_gmt":"2010-07-13T08:48:43","slug":"iwmw10-html5-and-friends","status":"publish","type":"post","link":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/2010\/07\/iwmw10-html5-and-friends\/","title":{"rendered":"IWMW10: HTML5 and friends"},"content":{"rendered":"<p>The second day of IWMW10 kicks off with <a href=\"http:\/\/twitter.com\/patrick_h_lauke\">Patrick Lauke<\/a> &#8211; he is currently &#8216;Web Evangelist&#8217; at Opera, and was previously web manager at University of Salford. Slides at <a href=\"http:\/\/www.slideshare.net\/redux\/html5-and-friends-institutional-web-management-workshop-2010\">http:\/\/www.slideshare.net\/redux\/html5-and-friends-institutional-web-management-workshop-2010<\/a><\/p>\n<p>HTML5 is a huge topic &#8211; Patrick wants to try to answer the question today &#8216;should I use HTML5 today?&#8217;<\/p>\n<p>HTML5 is a &#8216;woolly&#8217; term &#8211; people use it to encompass lots of technologies. However, Patrick is going to concentrate on the &#8216;core&#8217; HTML5 &#8211; not talking about other technologies that often get lumped into the HTML5 bucket (example he gives is geo-location services &#8211; not part of HTML5, but often referred to when people talk about HTML5) &#8211; HTML5 without the hype.<\/p>\n<p>Why are we back talking about HTML &#8211; weren&#8217;t we all going to be using XHTML? XHTML 1.0 came out in 2000 &#8211; idea was to move to xml base. Started to see development of XML based technologies &#8211; related to te web &#8211; e.g. XForms. At Opera they liked the functionality of XForms, but wanted to be able to introduce the same ideas to older sites, still using non-XML based sites &#8211; and came up with Web Forms 1.0<\/p>\n<p>In 2004 W3C started to focus on XHTML 2.0 &#8211; but this was not backwards compatible &#8211; and browser companies not happy. So Firefox, Opera and Apple (Safari) worked together as the &#8216;Web Hypertext Application Technology Working Group&#8217; (WHATWG). Eventually \u00a0W3C proposed bringing the work done by WHATWG back into W3C development &#8211; stepping back from XHTML. So in 2007 a W3C working group for HTML5 was setup (including browser vendors)<\/p>\n<p>Quote from Ian Hickson (Google) who is Editor of HTML5 says HTML5 is about &#8220;extending the language to better support Web applications [&#8230;] This puts HTML in direct competition with other technologies [&#8230;], in particular Flash and Silverlight.&#8221;<\/p>\n<p>Patrick says HTML5 does not replace HTML 4.01 (or XHTML 1.0) &#8211; just extends the languages. In general if you have a valid HTML 4.01 website, simply changing the doctype will result in a valid HTML5 webpage (with some minor tweaks maybe).<\/p>\n<p>HTML5 specification is aimed at browser developers &#8211; so if you aren&#8217;t a browser developer you don&#8217;t want to look at it. For authors rather look at &#8216;<a href=\"http:\/\/www.w3.org\/TR\/html5-diff\/\">HTML5 differences from HTML4<\/a>&#8216;. HTML5 standardises current browser and authoring behaviour &#8211; previously there has been a lot of inconsistency in how different browsers deal with different code.<\/p>\n<p>HTML5 doctype just says it is html &#8211; doesn&#8217;t include a version etc. So just use &lt;! DOCTYPE html&gt; &#8211; in reality this is all the browsers use generally anyway.<\/p>\n<p>HTML5 doesn&#8217;t care about some of the xml conventions &#8211; use of lowercase for tags, double quotes in attributes, closing empty tags. Patrick emphasises some of these things can still be good practice &#8211; but HTML5 doesn&#8217;t care about them.<\/p>\n<p>HTML5 looked at the most commonly used names for &lt;div&gt; tags, and transformed them into elements &#8211; so now a &lt;nav&gt; tag can be used instead of &lt;div class=&#8221;nav&#8221;&gt; for navigation &#8211; also for &lt;header&gt; and &lt;article&gt;.<\/p>\n<p>Lots of new types and attributes in forms for built-in validation &#8211; e.g. &lt;input type=&#8221;date&#8221;&gt; etc. Browser can both validate, and automatically offer a date picker rather than having to build this into javascript in the site. I guess this moves use much more towards browser as platform &#8211; more stuff &#8216;baked in&#8217; to the browser. One nice example (I think) can specify a regular expression as a &#8216;pattern&#8217; for a input &#8211; so can simply validate input (plus pre-defined types like email etc.)<\/p>\n<p>HTML5 introduces &lt;video&gt; element for embedding video &#8211; allows specification of basic player information &#8211; like size, whether controls display etc.<\/p>\n<p>Bringing Video as a native object is important &#8211; it &#8216;plays nice&#8217; with the rest of the page, has keyboard accessibility built-in and an API for controls (javascript based APIs). Also means you can style video player using CSS etc.<\/p>\n<p>However, still a big debate about video formats &#8211; H.264\/MP4 &#8211; supported by Chrome, Safari and IE 9 &#8211; but there are patent issues &#8211; and worries that this could lead to royalty coming down the line. Firefox and Opera support Ogg Theora &#8211; no patent\/licensing issues but not very many tools for Ogg Theora &#8211; very geeky still.<\/p>\n<p>New video standard started by Google and released free without patent\/licensing issues &#8211; WebM &#8211; supported by most major browsers, but IE needs codec installed, as would Safari (unspoken but implication Apple are the barrier to agreement on WebM adoption?). However you can specify a cascade of different video formats in the &lt;video&gt; element &#8211; so basically &#8216;use WebM if browser can, otherwise use Ogg, otherwise use H.264 etc.<\/p>\n<p>Is HTML5 a &#8216;flash killer&#8217;? Patrick says too early to talk about HTML5 replacing Flash &#8211; but HTML5 introduces choice &#8211; look at the tools, and what you want to do.<\/p>\n<p>Should you use HTML5 today? Patrick says, if you want to make use of the tools &#8211; yes, but otherwise you don&#8217;t need to rush. However, you could just try changing the doctype &#8211; you might already have a valid HTML5 site.<\/p>\n<p><strong>Q &amp; A<\/strong><\/p>\n<p>Q: How does HTML5 work with\/relate to RDFa?<\/p>\n<p>A: Working group looking at this. Also Patrick mentioned something about &#8216;microdata&#8217;<\/p>\n<p>Q: Why is there not a &lt;content&gt; tag<\/p>\n<p>A: Good question &#8211; Patrick says some of the decisions on tags are slightly odd &#8211; e.g. &lt;article&gt; not going to be relevant in all cases<\/p>\n<p>Q: How secure is HTML5 for copyright material?<\/p>\n<p>A: It is an issue &#8211; for e.g. easier to grab video because it is just referenced in the HTML code. YouTube are experimenting with HTML5 but have said they won&#8217;t use it for some types of video &#8211; e.g. those with adverts in them, because people could easily write something to skip the ads and go straight to the content &#8211; so loss of control over this is an issue. But then, there is no good way of protecting the content generally<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The second day of IWMW10 kicks off with Patrick Lauke &#8211; he is currently &#8216;Web Evangelist&#8217; at Opera, and was previously web manager at University of Salford. Slides at http:\/\/www.slideshare.net\/redux\/html5-and-friends-institutional-web-management-workshop-2010 HTML5 is a huge topic &#8211; Patrick wants to try to answer the question today &#8216;should I use HTML5 today?&#8217; HTML5 is a &#8216;woolly&#8217; term [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[47],"class_list":["post-868","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-iwmw10"],"_links":{"self":[{"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/posts\/868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/comments?post=868"}],"version-history":[{"count":5,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/posts\/868\/revisions"}],"predecessor-version":[{"id":873,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/posts\/868\/revisions\/873"}],"wp:attachment":[{"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/media?parent=868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/categories?post=868"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/tags?post=868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}