<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HTML5 Doctor &#187; video</title>
	<atom:link href="http://html5doctor.com/tag/video/feed/" rel="self" type="application/rss+xml" />
	<link>http://html5doctor.com</link>
	<description>helping you implement HTML5 today</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:36:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Video: the track element and webM codec</title>
		<link>http://html5doctor.com/video-the-track-element-and-webm-codec/</link>
		<comments>http://html5doctor.com/video-the-track-element-and-webm-codec/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 13:45:42 +0000</pubDate>
		<dc:creator>Bruce Lawson</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Attributes]]></category>
		<category><![CDATA[Elements]]></category>
		<category><![CDATA[multimedia]]></category>
		<category><![CDATA[codec]]></category>
		<category><![CDATA[track]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[webm]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=2089</guid>
		<description><![CDATA[There are a couple of interesting developments in the world of HTML5 multimedia that you'll be interested in&#8212;the webM video format, and a proposed solution to HTML5 multimedia accessibility.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;source=html5doctor&amp;style=normal&amp;service=is.gd" height="61" width="50" />
			</a>
		</div><p>There are a couple of interesting developments in the world of <abbr>HTML</abbr>5 multimedia that you&#8217;ll be interested in. The first is the new <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#the-track-element"><code>&lt;track&gt;</code> element</a> (currently only in the WHAT-WG spec due to political stuff).</p>

<p><code>&lt;track&gt;</code> is a child of a <code>&lt;video&gt;</code> or <code>&lt;audio&gt;</code> element that links to a <b>timed track</b>, or time-based data. The kind of data is set via a <code>kind</code> attribute, which can take values of <code>subtitles</code>, <code>captions</code>, <code>descriptions</code>, <code>chapters</code> or <code>metadata</code>, depending on the type of information you&#8217;re adding to your media. These point to a source file containing timed text that the browser will expose via some kind of user interface, if the visitor requires additional data.</p>

<p>This will allow for &#8220;write once, use everywhere&#8221; accessibility; anyone linking to that file with a <code>&lt;video&gt;</code> or <code>&lt;audio&gt;</code> element that includes the element can access your information.</p>

<pre><code>&lt;track kind=captions src=blah.srt&gt;</code></pre>

<p>The file format is a new format called <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#websrt">WebSRT</a>, which competes with about <a href="http://wiki.whatwg.org/wiki/Timed_track_formats">50 other timed formats</a>, including some W3C formats (hence the omission of <code>&lt;track&gt;</code> from the W3C spec).</p><p>Added 9 July 2010: Here&#8217;s a readable <a href="http://www.delphiki.com/websrt/">overview of the SRT format</a>.</p>

<p>Given that the format itself isn&#8217;t fully specified yet, it will be a while until we see implementation in browsers. But it&#8217;s good to know that there will be an official way to add accessibility information to media. Until then, I have a <a href="http://dev.opera.com/articles/view/accessible-html5-video-with-javascripted-captions/">JavaScript hack</a> to take timed <code>&lt;span&gt;</code>s out of an in-page transcript to superimpose over a video.</p>

<h2>WebM video format</h2>
<p>The big news of the last month is that Google open-sourced the VP8 video codec that it acquired when it <a href="http://investor.google.com/releases/2010/0219.html">took over On2 Technologies</a>. When combined with the Vorbis audio codec (that Spotify uses) and wrapped in a subset of the <a href="http://en.wikipedia.org/wiki/Matroska">Matroska container format</a>, it&#8217;s collectively known as <a href="http://www.webmproject.org/">WebM</a>.</p>

<p>All YouTube videos are being transcoded to WebM, and Adobe have also announced they will include it in their Flash player. It&#8217;s available in an <a href="http://www.opera.com/browser/next">Opera 10.60 beta</a>, a <a href="http://nightly.mozilla.org/webm/">Firefox testing build</a>, and a <a href="http://www.chromium.org/getting-involved/dev-channel">Chromium dev channel</a>. Even Microsoft have said that IE9 will support it if the codec is installed on the computer.</p>

<p>The <a href="http://www.streamingmedia.com/Articles/Editorial/Featured-Articles/First-Look-H.264-and-VP8-Compared-67266.aspx">VP8 video codec itself is high-quality</a> (Google had said that Ogg Theora wasn&#8217;t good enough compression-to-quality for YouTube, but Theora was based on the VP3 precursor to VP8). It&#8217;s available for <a href="http://zaheer.merali.org/articles/2010/06/02/webm-and-vp8-streaming-live-from-flumotion/">streaming</a> too.</p>

<p>If you want to encode to WebM, you can try the <a href="http://www.mirovideoconverter.com/">Miro Video Converter</a> utility. Although it doesn&#8217;t allow you to optimise settings, it&#8217;s very easy to use. As the codec becomes more widespread, expect to see many more tools for content creation, editing, and transcoding.</p>

<p>Once production versions of the browsers are available, you should encode your videos with WebM as the first option, Ogg for older versions of Opera, Firefox and Chrome, falling back to royalty-encumbered H.264 for Safari and links to downloads or a Flash player for legacy browsers:</p>

<pre><code>&lt;video controls&gt;
&lt;source src=video.webm type='video/webm; codecs="vorbis,vp8"'&gt;
&lt;source src=video.mp4 type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'&gt;
&lt;source src=video.ogv type='video/ogg; codecs="theora, vorbis"'&gt;
&lt;!-- embed Flash here --&gt;
&lt;p&gt;Your browser does not support video; download the &lt;a href=&quot;video.webm&quot;&gt;WebM&lt;/a&gt;, &lt;a href=&quot;video.mp4&quot;&gt;mp4&lt;/a&gt; or &lt;a href=&quot;video.ogg&quot;&gt;Ogg&lt;/a&gt; video for off-line viewing.&lt;/p&gt;
&lt;/video&gt;</code>
</pre>

<p>If, however, you&#8217;re having problems with the iPad, put the MP4 version first in the <code>&lt;source&gt;</code> element; apparently there&#8217;s a bug that causes the iPad only to see the first <code>&lt;source&gt;</code> element.</p>

<p>It’s a long haul, and it’s not over yet, but <code>&lt;track&gt;</code> and .webM show significant progress towards our goal of accessible, open, and royalty-free video playing natively in the browser.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://html5doctor.com/youtube-and-vimeo-support-html5-video/" rel="bookmark" class="crp_title">YouTube and Vimeo support HTML5 Video</a></li><li><a href="http://html5doctor.com/the-video-element/" rel="bookmark" class="crp_title">The video element</a></li><li><a href="http://html5doctor.com/native-audio-in-the-browser/" rel="bookmark" class="crp_title">Native Audio in the browser</a></li><li><a href="http://html5doctor.com/your-questions-answered-8/" rel="bookmark" class="crp_title">Your Questions Answered #8</a></li><li><a href="http://html5doctor.com/your-questions-answered-1/" rel="bookmark" class="crp_title">Your questions answered #1</a></li></ul></div>


Share and Save:


	<a rel="nofollow"  href="http://twitter.com/home?status=Video%3A%20the%20track%20element%20and%20webM%20codec%20-%20http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F" title="Twitter"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;title=Video%3A%20the%20track%20element%20and%20webM%20codec&amp;bodytext=There%20are%20a%20couple%20of%20interesting%20developments%20in%20the%20world%20of%20HTML5%20multimedia%20that%20you%27ll%20be%20interested%20in%26mdash%3Bthe%20webM%20video%20format%2C%20and%20a%20proposed%20solution%20to%20HTML5%20multimedia%20accessibility." title="Digg"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F" title="Sphinn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;title=Video%3A%20the%20track%20element%20and%20webM%20codec" title="Reddit"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;title=Video%3A%20the%20track%20element%20and%20webM%20codec&amp;notes=There%20are%20a%20couple%20of%20interesting%20developments%20in%20the%20world%20of%20HTML5%20multimedia%20that%20you%27ll%20be%20interested%20in%26mdash%3Bthe%20webM%20video%20format%2C%20and%20a%20proposed%20solution%20to%20HTML5%20multimedia%20accessibility." title="del.icio.us"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;title=Video%3A%20the%20track%20element%20and%20webM%20codec" title="StumbleUpon"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F" title="Technorati"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=Video%3A%20the%20track%20element%20and%20webM%20codec&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F" title="Netvibes"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;t=Video%3A%20the%20track%20element%20and%20webM%20codec" title="Facebook"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;title=Video%3A%20the%20track%20element%20and%20webM%20codec&amp;annotation=There%20are%20a%20couple%20of%20interesting%20developments%20in%20the%20world%20of%20HTML5%20multimedia%20that%20you%27ll%20be%20interested%20in%26mdash%3Bthe%20webM%20video%20format%2C%20and%20a%20proposed%20solution%20to%20HTML5%20multimedia%20accessibility." title="Google Bookmarks"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=Video%3A%20the%20track%20element%20and%20webM%20codec&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F" title="FriendFeed"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;t=Video%3A%20the%20track%20element%20and%20webM%20codec" title="HackerNews"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;title=Video%3A%20the%20track%20element%20and%20webM%20codec&amp;source=HTML5+Doctor+helping+you+implement+HTML5+today&amp;summary=There%20are%20a%20couple%20of%20interesting%20developments%20in%20the%20world%20of%20HTML5%20multimedia%20that%20you%27ll%20be%20interested%20in%26mdash%3Bthe%20webM%20video%20format%2C%20and%20a%20proposed%20solution%20to%20HTML5%20multimedia%20accessibility." title="LinkedIn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;h=Video%3A%20the%20track%20element%20and%20webM%20codec" title="NewsVine"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fhtml5doctor.com%2Fvideo-the-track-element-and-webm-codec%2F&amp;t=Video%3A%20the%20track%20element%20and%20webM%20codec&amp;s=There%20are%20a%20couple%20of%20interesting%20developments%20in%20the%20world%20of%20HTML5%20multimedia%20that%20you%27ll%20be%20interested%20in%26mdash%3Bthe%20webM%20video%20format%2C%20and%20a%20proposed%20solution%20to%20HTML5%20multimedia%20accessibility." title="Tumblr"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/><p><a href="http://html5doctor.com/video-the-track-element-and-webm-codec/" rel="bookmark">Video: the track element and webM codec</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on June 24, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/video-the-track-element-and-webm-codec/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Your Questions Answered #5</title>
		<link>http://html5doctor.com/your-questions-5/</link>
		<comments>http://html5doctor.com/your-questions-5/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 14:30:55 +0000</pubDate>
		<dc:creator>Richard Clark</dc:creator>
				<category><![CDATA[Attributes]]></category>
		<category><![CDATA[Elements]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Structure]]></category>
		<category><![CDATA[aside]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[img]]></category>
		<category><![CDATA[nav]]></category>
		<category><![CDATA[outline]]></category>
		<category><![CDATA[section]]></category>
		<category><![CDATA[sectioning]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=1400</guid>
		<description><![CDATA[We're back with our first round up of your questions for 2010. In this article we'll be covering a range of topics including sections and sectioning, the <code>img</code> element, scaling video and a proposal for a <code>field</code> element. ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;source=html5doctor&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://html5doctor.com/wp-content/uploads/2009/07/html5doctor-treatment.gif" alt="Doctor treating a patient illustration" class="alignright size-full wp-image-424" /> We&#8217;re back with our first roundup of your questions for 2010. In this article, we&#8217;ll be covering a range of topics including sections and sectioning, the <code>&lt;img&gt;</code> element, scaling video, and a proposal for a <code>&lt;field&gt;</code> element. </p>
<h2>Headers and sidebars</h2>
<p>Ad asked:</p>
<blockquote><p>Hello,</p>
<p>I have 2 questions:</p>
<p>1. If I have my main navigation above the masterhead would best practise be having the nav tag inside of a header tag with the h1 and h2 in a hgroup? Or should the nav and header tag be separate?</p>
<p>2. I am building a blog in HTML5. It has a blog-like sidebar with articles, contact info and about info in it. Would the best tag to wrap this in be section or aside?</p>
<p>Thank you so much for your time,<br />
Ad Taylor</p></blockquote>
<p>Placing your <code>&lt;nav&gt;</code> within your <code>&lt;header&gt;</code> is fine and valid. However, if it makes more sense to leave it outside, then you can do that too. You don&#8217;t need to put the <code>&lt;hgroup&gt;</code> inside the <code>&lt;nav&gt;</code> though.</p>
<p>See our articles on <a href="http://html5doctor.com/the-header-element/"><code>&lt;header&gt;</code></a> and <a href="http://html5doctor.com/nav-element/"><code>&lt;nav&gt;</code></a> for more on this.</p>
<p>Regarding your second question, I would use <code>&lt;aside&gt;</code> (as we&#8217;ve done on the HTML5 doctor site) and then use multiple sections within that. Also see Bruce&#8217;s article on <a href="http://html5doctor.com/designing-a-blog-with-html5/">Designing a blog with HTML5</a>.</p>
<p>Hope that helps.</p>
<p>Cheers, Rich</p>
<h2>HTML5 <code>&lt;img&gt;</code> element</h2>
<p>Martijn asked:</p>
<blockquote><p>As you are, according to the slogan, &#8220;helping [me] implement HTML5 today,&#8221; I thought to bother you people with a spec. related question.</p>
<p>What should an UA do with an image without specified width and height attributes?</p>
<p>The dimension attributes part of the specification keeps stating &#8220;if specified&#8221; for every rule but doesn&#8217;t give any &#8220;if not specified&#8221;.</p>
<p>The part of the specification defining the img element itself does not state anything of importance about the dimension attributes apart from how the attributes in the DOM should be created by the UA.</p>
<p>Interesting is to note that they have omitted these attributes in all their img element examples.</p>
<p>In the dimension attribute section they go state the following.</p>
<p> &#8211; The dimension attributes are not intended to be used to stretch the image.</p>
<p>So we can only use them to make images smaller? This is odd as well so let&#8217;s say by stretch they mean to say both expending and shrinking in size. In this case the attributes can only be used for two cases:</p>
<p>1. To state the exact width and height of the image. Something that seems redundant unless not using those attributes means the UA can display the image at any size (which it might, as nothing about this is defined in the spec.).</p>
<p>2. To give a 0 in both attributes. By this I am telling the UA that the image is not to be seen by the user.</p>
<p>Am I missing something or is the specification missing this?</p>
<p>Looking forward to getting your prescription <img src='http://html5doctor.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Kind Regards, Martijn</p></blockquote>
<p>If no dimension attributes are specified, the browser will leave no space for the image, and once the image has been loaded (after the rest of the page), it will then need to reflow the entire page, as that&#8217;s the first time it knows the size of the image. This can cause the content you&#8217;re reading scrolling off the page.</p>
<p>If you give the size of the image as attributes in the HTML, the browser will leave space and render the image there once it&#8217;s loaded without reflowing the page. On a mobile phone, reflowing the page unnecessarily drains the battery, and users can get vertigo from the page&#8217;s text jumping around to accommodate images.</p>
<p>Thanks, Bruce</p>
<h2>Section and Sectioning</h2>
<p>Yanoo asked:</p>
<blockquote><p>Hi,</p>
<p>What do you mean when you are talking about &#8220;sectioning&#8221;? And why don&#8217;t header and footer require sectioning?</p>
<p>I think about section and sectioning like about part of something defined. News, comment, page content, sidebar, *header*, and *footer*. Is it bad representation?</p></blockquote>
<p>Sectioning relates to the headings in some block of related content and defining what is related to what in a hierarchy of headings (<code>&lt;h1&gt;</code>&ndash;<code>&lt;h6&gt;</code>). The outlining algorithm can produce a table of contents from the nested <code>&lt;section&gt;</code>, <code>&lt;article&gt;</code>, <code>&lt;nav&gt;</code>, and <code>&lt;aside&gt;</code> elements.</p>
<p>Headers and footers themselves do not change the outline; a header or footer may contain no headings. If a header or footer <em>does</em> contain a heading, then that heading does come into the outline. See our article on <a href="http://html5doctor.com/the-section-element/">the section element</a>.</p>
<p>Thanks, Bruce</p>
<h2>Scaling the Video</h2>
<p>Ian asked:</p>
<blockquote><p>Hi there,</p>
<p>Not sure if this question is an appropriate one, but any help would be really appreciated.</p>
<p>I&#8217;m going about updating my video website, chutney.ie, and would love to implement HTML5. I am interested in replicating the scaling effect/style used on the <a href="http://www.mozilla.com/en-US/firefox/3.5/firstrun/">Mozilla welcome page</a>.</p>
<p>Not being overly knowledgeable in this area, I would love to know how to begin &mdash; is this effect a Flash based animation, or something that can be achieved with HTML alone?</p>
<p>Again, any nudge in the right direction would be great.</p>
<p>Many thanks,</p>
<p>Ian</p></blockquote>
<p>I&#8217;m not sure how Mozilla did it, but you can use some of the Webkit and Mozilla transforms on the <code>&lt;video&gt;</code> element. For example, you can cause the video to grow on hover &mdash; <a href="http://people.opera.com/patrickl/articles/introduction-html5-video/transitions/">see this example in Chrome, Safari, or Opera</a>. You can also use the <code>:target</code> pseudoclass to initiate animations. Alternatively, you can use a JavaScript <code>onClick</code> event to create the same effect. </p>
<p>You can also combine <code>&lt;video&gt;</code> and <code>&lt;canvas&gt;</code> to provide some interesting results (laying the <code>&lt;canvas&gt;</code> over the <code>&lt;video&gt;</code>). For more on the <code>&lt;video&gt;</code> element and what it can do, please read the <a href="http://dev.opera.com/articles/view/introduction-html5-video/">Introduction to <abbr>HTML</abbr>5 Video</a> on dev Opera written by <a href="http://twitter.com/brucel">Bruce Lawson</a> and <a href="http://twitter.com/patrick_h_lauke">Patrick Lauke</a>.</p>
<p>Cheers, Rich</p>
<h2>We need a <code>&lt;field&gt;</code> tag</h2>
<p>John wrote in and proposed a field element:</p>
<blockquote><p>Hey there. First off thanks for the site. I was excited to find it. I spent a little time on the W3C site and honestly couldn&#8217;t figure out how to submit suggestions there. So going to submit mine to you guys and maybe you can pass it on (if it is good) or point me to someone that can help. Ok to the point:</p>
<p>We are getting nice new tags to with HTML5 (nav, footer, etc) to help us create more semantic code. I think what we really need is a <code>field</code> tag &mdash; after all what are fieldsets sets of?</p>
<p>Everyone wraps up their labels and inputs with some element. Some of us do this with UL, some people do it with DT/DD, some with DIVs and some people out there insist that a form is tabular data.</p>
<p>We are all just bastardizing these elements because there is no clear semantic wrapper for field elements of a form.</p>
<p>I think you get the point. I&#8217;m trying to keep this email short. If you think there is anything to this argument, I have a more detailed summary (with example code) at:</p>
<p><a href="http://john.mirick.me/2009/10/what-is-really-set-of-shouldnt-we-have.html">http://john.mirick.me/2009/10/what-is-really-set-of-shouldnt-we-have.html</a></p>
<p>I would love to hear your thoughts on this.</p>
<p>Thanks!<br />
John</p></blockquote>
<p>While a field element would be nice &mdash; it would stop the argument over how best to mark-up forms &mdash; you have to ask yourself whether or not it actually adds any semantic or functional value to an HTML document. Yes, wrapping inputs and their labels in a field would make things easier to read and drop the need for the <code>for</code> attribute on the label (since the relationship can be assumed), but doing so would not be backwards compatible. In theory, we could continue to add <code>for</code> until there is a suitable time to drop it, but again I question the value of such a tag.</p>
<p>The purpose of wrapping form input/label pairs is generally to ease styling. My personal stance is that unless there are case studies showing how such an element can add more value to HTML forms, this proposal won&#8217;t make it very far.</p>
<p>Regards, Mike</p>
<h2>Got a question for us?</h2>
<p>That wraps up this round of questions. If you&#8217;ve got a query about the HTML5 spec or how to implement it, you can <a href="http://html5doctor.com/ask-the-doctor/">get in touch</a> with us and we&#8217;ll do our best to help. </p>
<div id="crp_related">
<h3>Related Posts:</h3>
<ul>
<li><a href="http://html5doctor.com/your-questions-answered-8/" rel="bookmark" class="crp_title">Your Questions Answered #8</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-7/" rel="bookmark" class="crp_title">Your Questions Answered #7</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-6/" rel="bookmark" class="crp_title">Your Questions Answered #6</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-4/" rel="bookmark" class="crp_title">Your Questions Answered #4</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-10/" rel="bookmark" class="crp_title">Your Questions Answered #10</a></li>
</ul>
</div>
<p>Share and Save:</p>
<p>	<a rel="nofollow"  href="http://twitter.com/home?status=Your%20Questions%20Answered%20%235%20-%20http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F" title="Twitter"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;title=Your%20Questions%20Answered%20%235&amp;bodytext=We%27re%20back%20with%20our%20first%20round%20up%20of%20your%20questions%20for%202010.%20In%20this%20article%20we%27ll%20be%20covering%20a%20range%20of%20topics%20including%20sections%20and%20sectioning%2C%20the%20img%20element%2C%20scaling%20video%20and%20a%20proposal%20for%20a%20field%20element.%20" title="Digg"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F" title="Sphinn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;title=Your%20Questions%20Answered%20%235" title="Reddit"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;title=Your%20Questions%20Answered%20%235&amp;notes=We%27re%20back%20with%20our%20first%20round%20up%20of%20your%20questions%20for%202010.%20In%20this%20article%20we%27ll%20be%20covering%20a%20range%20of%20topics%20including%20sections%20and%20sectioning%2C%20the%20img%20element%2C%20scaling%20video%20and%20a%20proposal%20for%20a%20field%20element.%20" title="del.icio.us"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;title=Your%20Questions%20Answered%20%235" title="StumbleUpon"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F" title="Technorati"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=Your%20Questions%20Answered%20%235&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F" title="Netvibes"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;t=Your%20Questions%20Answered%20%235" title="Facebook"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;title=Your%20Questions%20Answered%20%235&amp;annotation=We%27re%20back%20with%20our%20first%20round%20up%20of%20your%20questions%20for%202010.%20In%20this%20article%20we%27ll%20be%20covering%20a%20range%20of%20topics%20including%20sections%20and%20sectioning%2C%20the%20img%20element%2C%20scaling%20video%20and%20a%20proposal%20for%20a%20field%20element.%20" title="Google Bookmarks"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=Your%20Questions%20Answered%20%235&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F" title="FriendFeed"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;t=Your%20Questions%20Answered%20%235" title="HackerNews"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;title=Your%20Questions%20Answered%20%235&amp;source=HTML5+Doctor+helping+you+implement+HTML5+today&amp;summary=We%27re%20back%20with%20our%20first%20round%20up%20of%20your%20questions%20for%202010.%20In%20this%20article%20we%27ll%20be%20covering%20a%20range%20of%20topics%20including%20sections%20and%20sectioning%2C%20the%20img%20element%2C%20scaling%20video%20and%20a%20proposal%20for%20a%20field%20element.%20" title="LinkedIn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;h=Your%20Questions%20Answered%20%235" title="NewsVine"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-5%2F&amp;t=Your%20Questions%20Answered%20%235&amp;s=We%27re%20back%20with%20our%20first%20round%20up%20of%20your%20questions%20for%202010.%20In%20this%20article%20we%27ll%20be%20covering%20a%20range%20of%20topics%20including%20sections%20and%20sectioning%2C%20the%20img%20element%2C%20scaling%20video%20and%20a%20proposal%20for%20a%20field%20element.%20" title="Tumblr"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></p>
<p><br/><br/></p>
<p><a href="http://html5doctor.com/your-questions-5/" rel="bookmark">Your Questions Answered #5</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on March 2, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/your-questions-5/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>YouTube and Vimeo support HTML5 Video</title>
		<link>http://html5doctor.com/youtube-and-vimeo-support-html5-video/</link>
		<comments>http://html5doctor.com/youtube-and-vimeo-support-html5-video/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 16:08:28 +0000</pubDate>
		<dc:creator>Richard Clark</dc:creator>
				<category><![CDATA[Browser Compatibility]]></category>
		<category><![CDATA[Elements]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[vimeo]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=1315</guid>
		<description><![CDATA[Unless you've been hiding under an <abbr>XHTML</abbr>2 shaped rock for the past week or so you'll know that both YouTube and Vimeo have announced plans to support the <abbr>HTML</abbr>5 video element.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;source=html5doctor&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>Unless you&#8217;ve been hiding under an <abbr>XHTML</abbr>2 shaped rock for the past week or so, you&#8217;ll know that both YouTube and Vimeo have announced plans to support the <abbr>HTML</abbr>5 video element. Two <a href="http://youtube-global.blogspot.com/2010/01/introducing-youtube-html5-supported.html" title="Introducing YouTube HTML5 Supported Videos">blog</a> <a href="http://www.vimeo.com/blog:268" title="Try our new HTML5 player! on Vimeo Staff Blog">posts</a> published last week announced that the two major players in online video are experimenting with the <abbr>HTML</abbr>5 <a href="http://html5doctor.com/the-video-element/"><code>&lt;video&gt;</code> element</a>.</p>
<p><img src="http://html5doctor.com/wp-content/uploads/2010/01/yt-vimeo.jpg" alt="YouTube and Vimeo Logos" /></p>
<h2>Will it work cross browser?</h2>
<p>The videos will work natively in Safari and Chrome (well, YouTube would certainly have to, wouldn&#8217;t it?). They&#8217;ll also work in <abbr>IE</abbr> if you have <a href="http://code.google.com/chrome/chromeframe/">ChromeFrame</a> installed (which we all know is cheating). If you&#8217;re using a browser that doesn&#8217;t support <abbr>HTML</abbr>5 video it will default back to the Flash method they currently employ.</p>
<p>Both YouTube and Vimeo use the H.264 codec to encode the videos &mdash; and that&#8217;s where things start to get complicated.</p>
<p>Since no official codec is defined in the spec <ins>because</ins> browser manufacturers have chosen to use different codecs to render <abbr>HTML</abbr>5 video. Opera and Mozilla use the Ogg Theora codec (more on that later), while Apple and Google use H.264. Who knows which side of the fence Microsoft will come down on, but I feel duty bound to mention that the licensors of the H.264 codec include both <a href="http://www.mpegla.com/main/programs/AVC/Pages/Licensors.aspx">Microsoft and Apple</a>.</p>
<h2>The elephant in the room</h2>
<p>There&#8217;s one major problem here: Ogg Theora, the open source video codec supported by both Firefox and Opera, is not supported on either site. It&#8217;s a shame these browsers aren&#8217;t supported, especially since <a href="http://blog.mozilla.com/blog/2010/01/21/firefox-3-6-release/">Firefox 3.6 was released last week</a> and announced support for full-screen video in its native video player.</p>
<h3>Why use Ogg?</h3>
<p>As previously stated, Ogg is an open source codec, meaning it&#8217;s free to use and implement. By contrast, support for native H.264 decoding in a browser costs approximately &#036;5 million per year. (See <a href="http://www.mpegla.com/main/programs/avc/Documents/AVC_TermsSummary.pdf"><cite>summary of AVC/H.264 license terms [PDF]</cite></a>.) It also seems that people creating H.264 content will be liable for royalties starting in 2011.</p>
<p>Far be it from me to get into the ins and outs of the debate over which codec to use, but it seems that open source would be the better way to go. Silivia Pfeiffer (a contractor for Mozilla) <a href="http://blog.gingertech.net/2010/01/25/html5-video-25-h-264-reach-vs-95-ogg-theora-reach/">claims</a> that serving as Ogg Theora will reach more people than serving as H264.</p>
<p>Google, on the other hand, which owns YouTube has said that Theora is not a good enough codec, claiming &#8220;If [youtube] were to switch to theora and maintain even a semblance of the current youtube quality it would take up most available bandwidth across the Internet&#8221;, a claim hotly (and convincingly) contested in Greg Maxwell&#8217;s <a href="http://people.xiph.org/~greg/video/ytcompare/comparison.html">YouTube / Ogg/Theora comparison</a>.</p>
<p>YouTube and Vimeo seem to have discounted Ogg. I&#8217;d love to find out if there are other plans to add support for Firefox and Opera.</p>
<h2>Where does that leave us?</h2>
<p>Ignoring the whole video codec debate, it leaves us in some ways back where we started &mdash; dealing with proprietary software or complicated licensing to create online content rather than using technologies that will allow us to have a truly open web.</p>
<p>With Apple, Google, Mozilla, and Opera not likely to budge on their respective codec choices for <abbr>HTML</abbr>5 video, we can only hope that the developers at market-leading sites like YouTube and Vimeo can implement cross-browser interoperable video just like Kroc Camen&#8217;s <a href="http://camendesign.com/code/video_for_everybody">Video for Everybody</a>. Judging by the aforementioned blog posts, both sites have more plans in the pipeline, which is encouraging.</p>
<p>The codec battles are only beginning, and we&#8217;re waiting to see which direction one big gun will point. Last year, Google (which owns YouTube) <a href="http://googleblog.blogspot.com/2009/08/innovation-in-video-on-web.html">announced</a> that is paying $104million for a company called On2 Technologies, &#8220;a leading creator of high-quality video compression technology&#8221; and which made the original <a href="http://en.wikipedia.org/wiki/VP3#History">VP3 codec</a> which is the basis for Ogg Theora.</p>
<p>What are their plans? To release a &#8220;better&#8221; Theora-like codec into the community? We can only speculate.</p>
<p>Back to today. Although not perfect, these sites&#8217; support for the <code>&lt;video&gt;</code> element is still a massive leap forward for <abbr>HTML</abbr>5. Who knows &mdash; if more large sites continue to adopt <abbr>HTML</abbr>5, maybe it&#8217;ll be ready in 2010 rather than 2022!</p>
<div id="crp_related">
<h3>Related Posts:</h3>
<ul>
<li><a href="http://html5doctor.com/video-the-track-element-and-webm-codec/" rel="bookmark" class="crp_title">Video: the track element and webM codec</a></li>
<li><a href="http://html5doctor.com/the-video-element/" rel="bookmark" class="crp_title">The video element</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-6/" rel="bookmark" class="crp_title">Your Questions Answered #6</a></li>
<li><a href="http://html5doctor.com/native-audio-in-the-browser/" rel="bookmark" class="crp_title">Native Audio in the browser</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-2/" rel="bookmark" class="crp_title">Your questions answered #2</a></li>
</ul>
</div>
<p>Share and Save:</p>
<p>	<a rel="nofollow"  href="http://twitter.com/home?status=YouTube%20and%20Vimeo%20support%20HTML5%20Video%20-%20http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F" title="Twitter"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;title=YouTube%20and%20Vimeo%20support%20HTML5%20Video&amp;bodytext=Unless%20you%27ve%20been%20hiding%20under%20an%20XHTML2%20shaped%20rock%20for%20the%20past%20week%20or%20so%20you%27ll%20know%20that%20both%20YouTube%20and%20Vimeo%20have%20announced%20plans%20to%20support%20the%20HTML5%20video%20element." title="Digg"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F" title="Sphinn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;title=YouTube%20and%20Vimeo%20support%20HTML5%20Video" title="Reddit"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;title=YouTube%20and%20Vimeo%20support%20HTML5%20Video&amp;notes=Unless%20you%27ve%20been%20hiding%20under%20an%20XHTML2%20shaped%20rock%20for%20the%20past%20week%20or%20so%20you%27ll%20know%20that%20both%20YouTube%20and%20Vimeo%20have%20announced%20plans%20to%20support%20the%20HTML5%20video%20element." title="del.icio.us"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;title=YouTube%20and%20Vimeo%20support%20HTML5%20Video" title="StumbleUpon"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F" title="Technorati"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=YouTube%20and%20Vimeo%20support%20HTML5%20Video&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F" title="Netvibes"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;t=YouTube%20and%20Vimeo%20support%20HTML5%20Video" title="Facebook"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;title=YouTube%20and%20Vimeo%20support%20HTML5%20Video&amp;annotation=Unless%20you%27ve%20been%20hiding%20under%20an%20XHTML2%20shaped%20rock%20for%20the%20past%20week%20or%20so%20you%27ll%20know%20that%20both%20YouTube%20and%20Vimeo%20have%20announced%20plans%20to%20support%20the%20HTML5%20video%20element." title="Google Bookmarks"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=YouTube%20and%20Vimeo%20support%20HTML5%20Video&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F" title="FriendFeed"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;t=YouTube%20and%20Vimeo%20support%20HTML5%20Video" title="HackerNews"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;title=YouTube%20and%20Vimeo%20support%20HTML5%20Video&amp;source=HTML5+Doctor+helping+you+implement+HTML5+today&amp;summary=Unless%20you%27ve%20been%20hiding%20under%20an%20XHTML2%20shaped%20rock%20for%20the%20past%20week%20or%20so%20you%27ll%20know%20that%20both%20YouTube%20and%20Vimeo%20have%20announced%20plans%20to%20support%20the%20HTML5%20video%20element." title="LinkedIn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;h=YouTube%20and%20Vimeo%20support%20HTML5%20Video" title="NewsVine"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fhtml5doctor.com%2Fyoutube-and-vimeo-support-html5-video%2F&amp;t=YouTube%20and%20Vimeo%20support%20HTML5%20Video&amp;s=Unless%20you%27ve%20been%20hiding%20under%20an%20XHTML2%20shaped%20rock%20for%20the%20past%20week%20or%20so%20you%27ll%20know%20that%20both%20YouTube%20and%20Vimeo%20have%20announced%20plans%20to%20support%20the%20HTML5%20video%20element." title="Tumblr"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></p>
<p><br/><br/></p>
<p><a href="http://html5doctor.com/youtube-and-vimeo-support-html5-video/" rel="bookmark">YouTube and Vimeo support HTML5 Video</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on January 23, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/youtube-and-vimeo-support-html5-video/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Why designers should care about HTML5</title>
		<link>http://html5doctor.com/why-designers-should-care-about-html5/</link>
		<comments>http://html5doctor.com/why-designers-should-care-about-html5/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 13:01:06 +0000</pubDate>
		<dc:creator>Cennydd Bowles</dc:creator>
				<category><![CDATA[Comment]]></category>
		<category><![CDATA[JavaScript APIs]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[drag and drop]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[semantics]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=973</guid>
		<description><![CDATA[After a while on the fringes of our collective consciousness, HTML5 is finally getting the attention it deserves. The development community (as typified by the SuperFriends) has come together to debate practical elements of the spec, argue over the inclusion of controversial elements, and assess the timeframe over which we can unleash HTML5 in the wild.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;source=html5doctor&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>After a while on the fringes of our collective consciousness, <abbr title="Hypertext Markup Language 5">HTML5</abbr> is finally getting the attention it deserves. The development community (as typified by the <a href="http://www.zeldman.com/superfriends/">SuperFriends</a>) has come together to debate practical elements of the spec, argue over the inclusion of controversial elements, and assess the timeframe over which we can unleash <abbr>HTML</abbr>5 in the wild.</p>
<p>However those of us more accustomed to the world of Post-Its, sketches, and .psds – the designers – haven’t been so vocal. Perhaps we&#8217;ve been distracted by the bright lights of <a href="http://www.css3.info/">CSS3</a> and those surface thrills we’ve longed for. (Rounded corners! Gradients! Transparency!) Or, alternatively, we&#8217;ve been in the thrall of <code>@font-face</code> and looking forward to the coming age of passable web typography.</p>
<p>Understandable. But it’s time designers got excited about <abbr>HTML</abbr>5 too.</p>
<p>Partly, it’s just good practice. Whatever your flavour of design &ndash; visual, web, interaction, user experience &ndash; knowing the native technology makes you better at your job. Just as composers should understand the capabilities of the orchestra&#8217;s instruments, designers need to understand the language of the web.</p>
<p>But there’s more to <abbr>HTML</abbr>5 than simply keeping our skills sharp. It could make a big difference to the way we design for the web.</p>
<h2>Semantic elements</h2>
<p>Information architects (and, by extension, user experience designers) should be excited by the new <abbr>HTML</abbr>5 elements – <code>&lt;nav&gt;</code>, <code>&lt;header&gt;</code>, <code>&lt;aside&gt;</code> and so on. While they won’t immediately revolutionise today’s web, they’re an investment for the future. Doing useful stuff with information is the central theme of <abbr title="information architecture">IA</abbr>, and therefore its practitioners should be at the forefront of the new experiences that machine-readable semantics will offer. <abbr>HTML</abbr>5 allows us to mark text up in a more meaningful way than a sea of <code>&lt;div&gt;</code>s, meaning we’ll soon see applications appearing at a sub-page level. We’ve started to scratch the surface – think about the <a href="https://addons.mozilla.org/en-US/firefox/addon/4106">Operator toolbar</a> or customisable UIs à la <a href="http://www.google.com/ig">iGoogle</a> – but we’ll need detailed design thinking to work out how to bring the benefits of semantic richness to the end user.</p>
<h2>APIs and other extensions</h2>
<p>While it’s clear that <a href="http://www.quirksmode.org/blog/archives/2009/09/the_html5_drag.html">some of the <abbr>HTML</abbr>5 APIs are far from perfect</a> right now, when they&#8217;re refined they will offer us intriguing new opportunities and challenges.</p>
<p>Designers of location-based services should of course find the <a href="http://dev.w3.org/geo/api/spec-source.html">geolocation API</a> invaluable. The <a href="http://blog.whatwg.org/the-road-to-html-5-contenteditable">contentEditable attribute</a> gives us further power to make the web truly read/write without resorting to JavaScript and custom interfaces. New input types (eg <code>type=&quot;search&quot;</code>) can provide extra visual cues about input function, although of course this depends on the solutions chosen by the browser manufacturers.</p>
<p>Until now, it’s been easy to consider our domain as bounded by the viewport and the web server. But <abbr>HTML</abbr>5 is another step toward seamlessness: the merging of desktop, offline and online. For instance, the <a href="/native-drag-and-drop/">drag and drop API</a> could see the line between online and desktop experience blur further. Local storage could allow for a web-like experience in areas of poor connectivity. This convergence is clearly a good thing, but we must also design how to expose those hidden seams at the user’s request. Users should stay in control of how their locations are published and what data is synchronised to their machine.</p>
<h2>&lt;video&gt;, &lt;audio&gt;, &lt;canvas&gt;</h2>
<p>There is of course something of a reported schism between the standards world and the Flash world. Some see the advent of these new media elements (particularly <code>&lt;canvas&gt;</code>) as heralding the death of Adobe’s poster child.</p>
<p>I don&#8217;t think this is either likely or desirable. Neither technology is perfect. Flash is, of course, proprietary and thus subject to the whims of a third party that stands between browser and user. <code>&lt;canvas&gt;</code> has <a href="http://esw.w3.org/topic/HTML/AddedElementCanvas">known accessibility problems</a>. But the two can live in harmony, if we play to their respective strengths. Some current Flash applications might be better suited to <code>&lt;canvas&gt;</code>, particularly those based around dynamic visualisation: graphs, animations, infographics. Some applications will benefit from the powerful capabilities of Flash: games, heavily interactive widgets.</p>
<p>This aside, there’s clearly a user experience benefit in not having to rely on an external plugin to play rich media elements, and it will be interesting to see the uptake of the <code>&lt;video&gt;</code> and <code>&lt;audio&gt;</code> elements. Although it will initially be down to browser makers to define the interface elements involved, we will need to figure out how to integrate them into everyday web experiences. The good news is that they can be styled in the same way as any other <abbr>HTML</abbr> element. If your visual aesthetic relies on slanted images with box shadows, it&#8217;s trivial to apply this to video too.</p>
<p>That said, we can&#8217;t ignore the elephant in the room: <a href="http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-June/020620.html">the thorny codec issue</a>. I&#8217;m sure we&#8217;d all agree that the sooner it&#8217;s resolved, the better.</p>
<h2>What can designers do?</h2>
<p>Only the most patient and detail-oriented designer will relish the idea of reading the spec in full and arguing the finer points on the <a href="http://www.whatwg.org/mailing-list">WHATWG list</a>. That’s just not the way designers roll.</p>
<p>But as a community it’s important that we start talking about <abbr>HTML</abbr>5. If you&#8217;re new to <abbr>HTML</abbr>, now&#8217;s a great time to learn. The <a href="/article-archive/">articles on this site</a> and <a href="http://www.alistapart.com/articles/previewofhtml5/">A preview of HTML5</a> give useful guidance on the differences between <abbr>HTML</abbr>5 and its predecessors. Above all, designers should get chatting with their developer friends: there can’t be many left who no longer have an opinion on this technology. How do they see their practices changing? What can we do today to prepare our sites for the advent of HTML5? How can we build on its strong points to make the web a better place?</p>
<p>We don&#8217;t yet know what we&#8217;ll accomplish with <abbr>HTML</abbr>5, but then it&#8217;s not often that the vocabulary of the web changes this deeply. However, one thing is clear: if we prepare now, we have a great chance to bring innovation to our users&#8217; online lives.</p>
<p class="disclaimer">This article was jointly published on <a href="http://www.cennydd.co.uk/">Ineffable</a>, Cennydd&#8217;s personal website.</p>
<div id="crp_related">
<h3>Related Posts:</h3>
<ul>
<li><a href="http://html5doctor.com/reviewing-html5-for-web-designers/" rel="bookmark" class="crp_title">Reviewing HTML5 for Web Designers</a></li>
<li><a href="http://html5doctor.com/video-the-track-element-and-webm-codec/" rel="bookmark" class="crp_title">Video: the track element and webM codec</a></li>
<li><a href="http://html5doctor.com/native-audio-in-the-browser/" rel="bookmark" class="crp_title">Native Audio in the browser</a></li>
<li><a href="http://html5doctor.com/draw-attention-with-mark/" rel="bookmark" class="crp_title">Draw attention with mark</a></li>
<li><a href="http://html5doctor.com/web-directions-atmedia-2010/" rel="bookmark" class="crp_title">HTML5 Doctor at Web Directions @media</a></li>
</ul>
</div>
<p>Share and Save:</p>
<p>	<a rel="nofollow"  href="http://twitter.com/home?status=Why%20designers%20should%20care%20about%20HTML5%20-%20http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F" title="Twitter"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;title=Why%20designers%20should%20care%20about%20HTML5&amp;bodytext=After%20a%20while%20on%20the%20fringes%20of%20our%20collective%20consciousness%2C%20HTML5%20is%20finally%20getting%20the%20attention%20it%20deserves.%20The%20development%20community%20%28as%20typified%20by%20the%20SuperFriends%29%20has%20come%20together%20to%20debate%20practical%20elements%20of%20the%20spec%2C%20argue%20over%20the%20inclusion%20of%20controversial%20elements%2C%20and%20assess%20the%20timeframe%20over%20which%20we%20can%20unleash%20HTML5%20in%20the%20wild." title="Digg"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F" title="Sphinn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;title=Why%20designers%20should%20care%20about%20HTML5" title="Reddit"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;title=Why%20designers%20should%20care%20about%20HTML5&amp;notes=After%20a%20while%20on%20the%20fringes%20of%20our%20collective%20consciousness%2C%20HTML5%20is%20finally%20getting%20the%20attention%20it%20deserves.%20The%20development%20community%20%28as%20typified%20by%20the%20SuperFriends%29%20has%20come%20together%20to%20debate%20practical%20elements%20of%20the%20spec%2C%20argue%20over%20the%20inclusion%20of%20controversial%20elements%2C%20and%20assess%20the%20timeframe%20over%20which%20we%20can%20unleash%20HTML5%20in%20the%20wild." title="del.icio.us"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;title=Why%20designers%20should%20care%20about%20HTML5" title="StumbleUpon"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F" title="Technorati"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=Why%20designers%20should%20care%20about%20HTML5&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F" title="Netvibes"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;t=Why%20designers%20should%20care%20about%20HTML5" title="Facebook"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;title=Why%20designers%20should%20care%20about%20HTML5&amp;annotation=After%20a%20while%20on%20the%20fringes%20of%20our%20collective%20consciousness%2C%20HTML5%20is%20finally%20getting%20the%20attention%20it%20deserves.%20The%20development%20community%20%28as%20typified%20by%20the%20SuperFriends%29%20has%20come%20together%20to%20debate%20practical%20elements%20of%20the%20spec%2C%20argue%20over%20the%20inclusion%20of%20controversial%20elements%2C%20and%20assess%20the%20timeframe%20over%20which%20we%20can%20unleash%20HTML5%20in%20the%20wild." title="Google Bookmarks"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=Why%20designers%20should%20care%20about%20HTML5&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F" title="FriendFeed"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;t=Why%20designers%20should%20care%20about%20HTML5" title="HackerNews"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;title=Why%20designers%20should%20care%20about%20HTML5&amp;source=HTML5+Doctor+helping+you+implement+HTML5+today&amp;summary=After%20a%20while%20on%20the%20fringes%20of%20our%20collective%20consciousness%2C%20HTML5%20is%20finally%20getting%20the%20attention%20it%20deserves.%20The%20development%20community%20%28as%20typified%20by%20the%20SuperFriends%29%20has%20come%20together%20to%20debate%20practical%20elements%20of%20the%20spec%2C%20argue%20over%20the%20inclusion%20of%20controversial%20elements%2C%20and%20assess%20the%20timeframe%20over%20which%20we%20can%20unleash%20HTML5%20in%20the%20wild." title="LinkedIn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;h=Why%20designers%20should%20care%20about%20HTML5" title="NewsVine"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fhtml5doctor.com%2Fwhy-designers-should-care-about-html5%2F&amp;t=Why%20designers%20should%20care%20about%20HTML5&amp;s=After%20a%20while%20on%20the%20fringes%20of%20our%20collective%20consciousness%2C%20HTML5%20is%20finally%20getting%20the%20attention%20it%20deserves.%20The%20development%20community%20%28as%20typified%20by%20the%20SuperFriends%29%20has%20come%20together%20to%20debate%20practical%20elements%20of%20the%20spec%2C%20argue%20over%20the%20inclusion%20of%20controversial%20elements%2C%20and%20assess%20the%20timeframe%20over%20which%20we%20can%20unleash%20HTML5%20in%20the%20wild." title="Tumblr"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></p>
<p><br/><br/></p>
<p><a href="http://html5doctor.com/why-designers-should-care-about-html5/" rel="bookmark">Why designers should care about HTML5</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on October 14, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/why-designers-should-care-about-html5/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Your questions answered #1</title>
		<link>http://html5doctor.com/your-questions-answered-1/</link>
		<comments>http://html5doctor.com/your-questions-answered-1/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 10:59:36 +0000</pubDate>
		<dc:creator>Richard Clark</dc:creator>
				<category><![CDATA[Elements]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html4.01]]></category>
		<category><![CDATA[section]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=390</guid>
		<description><![CDATA[One week on since our official launch and we've been overwhelmed by your response to the site. It's great to see a large number of you wanting to get involved with the discussion relating to <abbr>HTML</abbr> 5 and asking about what you can and can't do as well as the pro's and cons of the specification. In this post we're going to cover a few of the questions we've received that don't require a full post answer but still need to be addressed.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;source=html5doctor&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://html5doctor.com/wp-content/uploads/2009/07/html5doctor-treatment.gif" alt="Doctor treating a patient illustration" class="alignright size-full wp-image-424" /> One week on since our official launch and we&#8217;ve been overwhelmed by your response to the site. It&#8217;s great to see a large number of you wanting to get involved with the discussion relating to <abbr>HTML</abbr> 5 and asking about what you can and can&#8217;t do as well as the pro&#8217;s and cons of the specification.</p>
<p>In this post we&#8217;re going to cover a few of the questions we&#8217;ve received that don&#8217;t require a full post answer but still need to be addressed. We&#8217;ll post more answers everytime we&#8217;ve collated a bunch of questions so don&#8217;t be afraid to ask, however groundbreaking or insignificant it might be. Ok here we go for starters&hellip;</p>
<h2>Automated Conversion?</h2>
<p>Andy Mabbett wrote to ask:</p>
<blockquote><p>Are there (or will there be) any automated or semi-automated tools which will take my (valid) HTML 4.01 Strict documents and convert them to HTML5?</p></blockquote>
<p>While we don&#8217;t know about any specific conversion tools for converting to <abbr>HTML</abbr> 5 from <abbr>HTML</abbr> 4.01. There are several articles (see below) describing how you can name your classes more semantically in preparation for using <abbr>HTML</abbr> 5. </p>
<ul>
<li><a href="http://forabeautifulweb.com/blog/about/more_on_developing_naming_conventions_microformats_and_html5/">More on developing naming conventions, Microformats and HTML5</a></li>
<li><a href="http://jontangerine.com/log/2008/03/preparing-for-html5-with-semantic-class-names">Preparing for HTML5 with Semantic Class Names</a></li>
<li><a href="http://boblet.tumblr.com/post/60552152/html5">HTML5 id/class name cheatsheet</a></li>
</ul>
<p>A final point on this is that I&#8217;m not sure that it would be wise to have a converter in order to move from <abbr>HTML</abbr> 4.01 to <abbr>HTML</abbr> 5, a machine however clever will not really be able to understand the true meaning of <code>&lt;aside&gt;</code> or <code>&lt;figure&gt;</code> for example. I&#8217;d be interested to hear other peoples thoughts on this though?</p>
<h2>When should I start using <abbr>HTML</abbr> 5?</h2>
<p>James asked us (presumably a little tongue in cheek):</p>
<blockquote><p>
Dear Doctor, </p>
<p>When will I know that it is time to start using HTML5 &#8220;for real&#8221;? Will there be an announcement? </p>
<p>yours etc,<br />
James</p></blockquote>
<p>Now I&#8217;d love there to be an official annoucement, in fact I might just announce it now! <strong>You can all start using <abbr>HTML</abbr> 5 today</strong>. There I said it, I feel so much better now. Seriously though, there is no reason for you not to start using <abbr>HTML</abbr> 5 now in sites you&#8217;re developing. I&#8217;m not saying that you have to use it religiously, but at you should at least start thinking about it in your development roadmaps. We can see on our <a href="http://html5gallery.com/">sister site</a> that there are a number of sites using <abbr>HTML</abbr> 5 &#8220;in the wild&#8221;. The amount of implementation varies greatly (some including <code>&lt;div&gt;</code>&#8217;s around their <code>&lt;header&gt;</code> elements for styling purposes for example) but they have begun to incorporate <abbr>HTML</abbr> 5 right now.</p>
<p>Lastly, <a href="http://molly.com/">Molly</a> recently gave a talk at <a href="http://www.vivabit.com/atmedia2009/">@media</a> which touched upon this subject, she told us that</p>
<blockquote><p>Implementation trumps specification</p></blockquote>
<p>which I happen to firmly believe, after all <abbr>CSS</abbr> 2.1 isn&#8217;t a formal specification yet but almost everyone is using it. If you&#8217;re not sure where to start then I suggest taking a look at what browser implementations are currently like, which is where this <a href="http://wiki.whatwg.org/wiki/Implementations_in_Web_browsers">Wiki from the WHATWG</a> comes in. Hope that answers your question James.</p>
<h2>Main Body</h2>
<p>Darren asked:</p>
<blockquote><p>How do I markup the main body of a page, are there &lt;content&gt; tags? Can I serve a SWF Flash file using &lt;VIDEO&gt; tags? </p>
<p>Regards Darren</p></blockquote>
<p>There isn&#8217;t a <code>&lt;content&gt;</code> tag (element), the most appropriate element for that would be <code>&lt;section&gt;</code>, however if only a single article is contained in that area you should use <code>&lt;article&gt;</code>.</p>
<p>As for the second part to your question, you *can&#8217;t* use a SWF file natively as the source to the <code>&lt;video&gt;</code> tag, or FLV file for that matter.  However, for the foreseeable future you&#8217;re still going to need to embed flash for video, via nesting the flash within the <code>&lt;video&gt;</code> tag.</p>
<p>First you&#8217;ll use the <code>&lt;video&gt;</code> with nested source elements to fall through the different supported codecs.  Then when all else fails, particularly for IE, you&#8217;ll serve up the flash video via the <code>&lt;object&gt;</code> and <code>&lt;embed&gt;</code> combo.  This is because IE8 and lower doesn&#8217;t support the <code>&lt;video&gt;</code> you&#8217;re going to need to fall back on something that works.</p>
<p>Make sure you read Tom&#8217;s article about <a href="/the-video-element/">the <code>&lt;video&gt;</code> element</a>, but you should also find this article on <a href="http://camendesign.com/code/video_for_everybody">Video for Everybody</a> useful to see how to degrade through the codecs.</p>
<h2>More articles!</h2>
<p>Although not really a question I wanted to drop this in, August wrote to tell us:</p>
<blockquote><p>The <code>&lt;aside&gt;</code> article is awesome. Great explanation of a very semantic HTML5 element. More of those, please!</p></blockquote>
<p>Thanks for the great feedback August, we&#8217;re happy to help, rest assured we&#8217;ve got plenty of articles lined up along those lines, in fact I know we&#8217;ve got a few crackers lined up for the next couple of weeks, so watch this space.</p>
<h2>And finally&hellip;</h2>
<p>If your question hasn&#8217;t been answered in this post or we haven&#8217;t got back to you directly then it&#8217;s more than likely that we&#8217;ll be covering it soon in a more detailed post so be sure to check back or subscribe to the <a href="http://html5doctor.com/feed/">RSS feed</a> for all future articles.</p>
<div id="crp_related">
<h3>Related Posts:</h3>
<ul>
<li><a href="http://html5doctor.com/your-questions-answered-2/" rel="bookmark" class="crp_title">Your questions answered #2</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-6/" rel="bookmark" class="crp_title">Your Questions Answered #6</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-8/" rel="bookmark" class="crp_title">Your Questions Answered #8</a></li>
<li><a href="http://html5doctor.com/video-the-track-element-and-webm-codec/" rel="bookmark" class="crp_title">Video: the track element and webM codec</a></li>
<li><a href="http://html5doctor.com/the-video-element/" rel="bookmark" class="crp_title">The video element</a></li>
</ul>
</div>
<p>Share and Save:</p>
<p>	<a rel="nofollow"  href="http://twitter.com/home?status=Your%20questions%20answered%20%231%20-%20http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F" title="Twitter"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;title=Your%20questions%20answered%20%231&amp;bodytext=One%20week%20on%20since%20our%20official%20launch%20and%20we%27ve%20been%20overwhelmed%20by%20your%20response%20to%20the%20site.%20It%27s%20great%20to%20see%20a%20large%20number%20of%20you%20wanting%20to%20get%20involved%20with%20the%20discussion%20relating%20to%20HTML%205%20and%20asking%20about%20what%20you%20can%20and%20can%27t%20do%20as%20well%20as%20the%20pro%27s%20and%20cons%20of%20the%20specification.%20In%20this%20post%20we%27re%20going%20to%20cover%20a%20few%20of%20the%20questions%20we%27ve%20received%20that%20don%27t%20require%20a%20full%20post%20answer%20but%20still%20need%20to%20be%20addressed." title="Digg"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F" title="Sphinn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;title=Your%20questions%20answered%20%231" title="Reddit"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;title=Your%20questions%20answered%20%231&amp;notes=One%20week%20on%20since%20our%20official%20launch%20and%20we%27ve%20been%20overwhelmed%20by%20your%20response%20to%20the%20site.%20It%27s%20great%20to%20see%20a%20large%20number%20of%20you%20wanting%20to%20get%20involved%20with%20the%20discussion%20relating%20to%20HTML%205%20and%20asking%20about%20what%20you%20can%20and%20can%27t%20do%20as%20well%20as%20the%20pro%27s%20and%20cons%20of%20the%20specification.%20In%20this%20post%20we%27re%20going%20to%20cover%20a%20few%20of%20the%20questions%20we%27ve%20received%20that%20don%27t%20require%20a%20full%20post%20answer%20but%20still%20need%20to%20be%20addressed." title="del.icio.us"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;title=Your%20questions%20answered%20%231" title="StumbleUpon"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F" title="Technorati"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=Your%20questions%20answered%20%231&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F" title="Netvibes"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;t=Your%20questions%20answered%20%231" title="Facebook"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;title=Your%20questions%20answered%20%231&amp;annotation=One%20week%20on%20since%20our%20official%20launch%20and%20we%27ve%20been%20overwhelmed%20by%20your%20response%20to%20the%20site.%20It%27s%20great%20to%20see%20a%20large%20number%20of%20you%20wanting%20to%20get%20involved%20with%20the%20discussion%20relating%20to%20HTML%205%20and%20asking%20about%20what%20you%20can%20and%20can%27t%20do%20as%20well%20as%20the%20pro%27s%20and%20cons%20of%20the%20specification.%20In%20this%20post%20we%27re%20going%20to%20cover%20a%20few%20of%20the%20questions%20we%27ve%20received%20that%20don%27t%20require%20a%20full%20post%20answer%20but%20still%20need%20to%20be%20addressed." title="Google Bookmarks"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=Your%20questions%20answered%20%231&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F" title="FriendFeed"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;t=Your%20questions%20answered%20%231" title="HackerNews"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;title=Your%20questions%20answered%20%231&amp;source=HTML5+Doctor+helping+you+implement+HTML5+today&amp;summary=One%20week%20on%20since%20our%20official%20launch%20and%20we%27ve%20been%20overwhelmed%20by%20your%20response%20to%20the%20site.%20It%27s%20great%20to%20see%20a%20large%20number%20of%20you%20wanting%20to%20get%20involved%20with%20the%20discussion%20relating%20to%20HTML%205%20and%20asking%20about%20what%20you%20can%20and%20can%27t%20do%20as%20well%20as%20the%20pro%27s%20and%20cons%20of%20the%20specification.%20In%20this%20post%20we%27re%20going%20to%20cover%20a%20few%20of%20the%20questions%20we%27ve%20received%20that%20don%27t%20require%20a%20full%20post%20answer%20but%20still%20need%20to%20be%20addressed." title="LinkedIn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;h=Your%20questions%20answered%20%231" title="NewsVine"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fhtml5doctor.com%2Fyour-questions-answered-1%2F&amp;t=Your%20questions%20answered%20%231&amp;s=One%20week%20on%20since%20our%20official%20launch%20and%20we%27ve%20been%20overwhelmed%20by%20your%20response%20to%20the%20site.%20It%27s%20great%20to%20see%20a%20large%20number%20of%20you%20wanting%20to%20get%20involved%20with%20the%20discussion%20relating%20to%20HTML%205%20and%20asking%20about%20what%20you%20can%20and%20can%27t%20do%20as%20well%20as%20the%20pro%27s%20and%20cons%20of%20the%20specification.%20In%20this%20post%20we%27re%20going%20to%20cover%20a%20few%20of%20the%20questions%20we%27ve%20received%20that%20don%27t%20require%20a%20full%20post%20answer%20but%20still%20need%20to%20be%20addressed." title="Tumblr"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></p>
<p><br/><br/></p>
<p><a href="http://html5doctor.com/your-questions-answered-1/" rel="bookmark">Your questions answered #1</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on July 6, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/your-questions-answered-1/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>The video element</title>
		<link>http://html5doctor.com/the-video-element/</link>
		<comments>http://html5doctor.com/the-video-element/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 23:58:46 +0000</pubDate>
		<dc:creator>Tom Leadbetter</dc:creator>
				<category><![CDATA[Attributes]]></category>
		<category><![CDATA[Elements]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=65</guid>
		<description><![CDATA[
			
				
			
		
The &#60;video&#62; element is brand new in HTML 5 and allows you to, get this, play a movie in your website! The data of this element is supposed to be video but it might also have audio or images associated with it.
Of course, this will only work in a few browsers: Safari 3.1+, Firefox 3.5+, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;source=html5doctor&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>The &lt;video&gt; element is brand new in HTML 5 and allows you to, get this, play a movie in your website! The data of this element is supposed to be video but it might also have audio or images associated with it.</p>
<p>Of course, this will only work in a few browsers: Safari 3.1+, Firefox 3.5+, and latest builds of Opera (oh, and potentially the next release of Chrome).<span id="more-65"></span></p>
<h2>The ‘old’ way</h2>
<p>Ugh, look at this horrid code:</p>
<pre><code>&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;
&lt;param name="allowFullScreen" value="true" /&gt;
&lt;param name="allowscriptaccess" value="always" /&gt;
&lt;param name="src" value="http://www.youtube.com/v/oHg5SJYRHA0&amp;hl=en&amp;fs=1&amp;" /&gt;
&lt;param name="allowfullscreen" value="true" /&gt;
&lt;embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/oHg5SJYRHA0&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"&gt;
&lt;/embed&gt;
&lt;/object&gt;</code></pre>
<p>Yuck. And as you know, you need Flash for this. Or it is often delivered via javascript as well so it is not perfect.</p>
<h2>The HTML 5 way</h2>
<p>Nice, clean, minimal code:</p>
<pre><code>&lt;video width=&quot;640&quot;  height=&quot;360&quot; src=&quot;http://www.youtube.com/demo/google_main.mp4&quot;  controls autobuffer&gt;
&lt;p&gt; Try this page in Safari  4! Or you can &lt;a  href=&quot;http://www.youtube.com/demo/google_main.mp4&quot;&gt;download the  video&lt;/a&gt; instead.&lt;/p&gt;
  &lt;/video&gt;
</code></pre>
<h3>Autoplay</h3>
<p>The video tag has an attribute that allows the video to play when the page loads.</p>
<pre><code>&lt;video src="abc.mov" autoplay&gt;
&lt;/video&gt;</code></pre>
<p>But <a href="http://www.punkchip.com/2009/04/autoplay-is-bad-for-all-users/">autoplay is bad ok</a>? Youtube and the like autoplay their videos. But before you push the launch button for your HTML 5 site, strongly consider whether it should autoplay a video.</p>
<h3>Download</h3>
<p>If the browser doesn’t know what to do with video tag, or if there is a display error, you can offer a download to the video instead:</p>
<h3>Autobuffer</h3>
<p>Autobuffer attribute is used when autoplay is <strong>not</strong> used but the page/site owner thinks the video will be watched at some point. The video is downloaded in the background, so when the user starts the video, it will be able to play at least some of the content. If both autoplay and autobuffer are used, then autobuffer is ignored.</p>
<p>It is worth pointing out at this point that the browser automatically downloads the video anyway, with or without autobuffer and there is nothing you can do about it. This has bandwidth and loading time issues, particularly if you have a lot of video on your page.</p>
<h3>Poster</h3>
<p>Use the poster attribute to display a frame of the video (as a .jpg, .png, whatever), in case the video doesn’t load for some reason. It can be a local image or elsewhere on the web</p>
<pre><code>&lt;video width="640" height="360" src="http://www.youtube.com/demo/google_main.mp" autobuffer controls poster="whale.png"&gt;
&lt;p&gt;Try this page in Safari 4! Or you can &lt;a href="http://www.youtube.com/demo/google_main.mp4"&gt;download the video&lt;/a&gt; instead.&lt;/p&gt;
&lt;/video&gt;</code></pre>
<p>You should use the poster attribute because you don’t want the user to see nothing.</p>
<h3>Controls</h3>
<p>Adding this attribute means you can use your own play/pause/etc buttons for your video. Safari has lovely default controls but you can create your own.</p>
<h3>Subtitles</h3>
<p>There is no attribute for subtitles (yet – hello HTML 5 group) but just thought I’d mention it. Personally I love the way the JW FLV player handles it, but this is a very interesting read: <a href="http://blog.gingertech.net/2008/12/12/attaching-subtitles-to-html5-video/">http://blog.gingertech.net/2008/12/12/attaching-subtitles-to-html5-video/</a></p>
<p>But ideally, we will be able to delivery subtitles/description audio without javascript.</p>
<h2>Current issues</h2>
<h3>Codecs</h3>
<p>I won’t claim to be a video/audio codec expert but there are a few outstanding issues in this area, which <a href="http://www.topfstedt.de/weblog/?p=382">this article</a> does a good job explaining.</p>
<h3>Internet Explorer</h3>
<p>IE hasn’t a clue and as the market leader, will need to be addressed. Thankfully here at HTML 5 Doctor, we have a few hints and tips for IE that will be coming shortly.</p>
<h3>Physical file</h3>
<p>So far, the video tag needs to link to a physical file (see example at the top). What we need here is a way to just import, say a YouTube video, using the video tag, like we did with the embed tag.</p>
<p>When I set out writing this article, what I wanted to do was kick it back to 2008 and Rickroll the lot of you but so far I haven’t found a way to do it with the video tag.</p>
<p>Here’s what I think you should be able to do with the video tag:</p>
<pre><code>&lt;video src="http://www.youtube.com/v/oHg5SJYRHA0&amp;hl=en&amp;fs=1&amp;" autoplay&gt;
&lt;/video&gt;</code></pre>
<p>How awesome would that be?</p>
<h2>Conclusion</h2>
<p>I think there is a <strong>long</strong> way to go yet but this tag has real potential. The issue over codecs looks certain to run and run, but you can put fall backs in the code, like the download link. You could use a combination of the video, object, embed elements, but that markup will be pretty horrendous:</p>
<pre><code>&lt;video width="640" height="360" src="http://www.youtube.com/demo/google_main.mp4" autobuffer controls poster="whale.png"&gt;
&lt;object classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" width="640"height="360" codebase="http://www.apple.com/qtactivex/qtplugin.cab"&gt;
&lt;param value="http://www.youtube.com/demo/google_main.mp4"&gt;
&lt;param value="true"&gt;
&lt;param value="false"&gt;
&lt;embed src="http://www.youtube.com/demo/google_main.mp4" width="640"height="360" autoplay="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/"&gt;
&lt;/embed&gt;
&lt;/object&gt;
&lt;/video&gt;</code></pre>
<h2>In the meantime</h2>
<p>If you don’t want to use the video tag yet, then here is <strong>valid</strong> XHTML code to display a video:</p>
<pre><code>&lt;object width="460" height="265" data="http://vimeo.com/moogaloop.swf?clip_id=5072163" type="application/x-shockwave-flash"&gt;
&lt;param value="http://vimeo.com/moogaloop.swf?clip_id=5072163"&gt;&lt;/param&gt;
&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;
&lt;param value="always"&gt;&lt;/param&gt;
&lt;/object&gt;</code></pre>
<h2>Further reading</h2>
<ul>
<li><a href="http://dev.w3.org/html5/spec/Overview.html#video">Editor&#8217;s Draft 17 June 2009</a></li>
<li><a href="http://www.brucelawson.co.uk/2009/accessibility-of-html5-video-and-audio-elements/">Accessibility of HTML 5 video and audio elements </a></li>
<li><a href="http://www.alobbs.com/1369/Setting_up_a_HTML5_on_line_video_site.html">Setting up a HTML 5 on-line video site</a></li>
<li><a href="http://blog.dailymotion.com/2009/05/27/watch-videowithout-flash/">Watch Video…without Flash</a></li>
<li><a href="http://www.youtube.com/html5">YouTube HTML 5 demo</a></li>
<li><a href="http://henriksjokvist.net/archive/2009/2/using-the-html5-video-tag-with-a-flash-fallback">Using the HTML 5 video tag with a Flash fallback</a></li>
<li><a href="http://www.computedstyle.com/2009/05/lessons-from-building-basic-video.html">Lessons From Building a Basic Video Player in HTML 5</a></li>
</ul>
<div id="crp_related">
<h3>Related Posts:</h3>
<ul>
<li><a href="http://html5doctor.com/video-the-track-element-and-webm-codec/" rel="bookmark" class="crp_title">Video: the track element and webM codec</a></li>
<li><a href="http://html5doctor.com/native-audio-in-the-browser/" rel="bookmark" class="crp_title">Native Audio in the browser</a></li>
<li><a href="http://html5doctor.com/youtube-and-vimeo-support-html5-video/" rel="bookmark" class="crp_title">YouTube and Vimeo support HTML5 Video</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-1/" rel="bookmark" class="crp_title">Your questions answered #1</a></li>
<li><a href="http://html5doctor.com/the-nsfw-element/" rel="bookmark" class="crp_title">The nsfw element</a></li>
</ul>
</div>
<p>Share and Save:</p>
<p>	<a rel="nofollow"  href="http://twitter.com/home?status=The%20video%20element%20-%20http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F" title="Twitter"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;title=The%20video%20element&amp;bodytext=The%20%26lt%3Bvideo%26gt%3B%20element%20is%20brand%20new%20in%20HTML%205%20and%20allows%20you%20to%2C%20get%20this%2C%20play%20a%20movie%20in%20your%20website%21%20The%20data%20of%20this%20element%20is%20supposed%20to%20be%20video%20but%20it%20might%20also%20have%20audio%20or%20images%20associated%20with%20it.%0D%0A%0D%0AOf%20course%2C%20this%20will%20only%20work%20" title="Digg"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F" title="Sphinn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;title=The%20video%20element" title="Reddit"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;title=The%20video%20element&amp;notes=The%20%26lt%3Bvideo%26gt%3B%20element%20is%20brand%20new%20in%20HTML%205%20and%20allows%20you%20to%2C%20get%20this%2C%20play%20a%20movie%20in%20your%20website%21%20The%20data%20of%20this%20element%20is%20supposed%20to%20be%20video%20but%20it%20might%20also%20have%20audio%20or%20images%20associated%20with%20it.%0D%0A%0D%0AOf%20course%2C%20this%20will%20only%20work%20" title="del.icio.us"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;title=The%20video%20element" title="StumbleUpon"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F" title="Technorati"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=The%20video%20element&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F" title="Netvibes"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;t=The%20video%20element" title="Facebook"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;title=The%20video%20element&amp;annotation=The%20%26lt%3Bvideo%26gt%3B%20element%20is%20brand%20new%20in%20HTML%205%20and%20allows%20you%20to%2C%20get%20this%2C%20play%20a%20movie%20in%20your%20website%21%20The%20data%20of%20this%20element%20is%20supposed%20to%20be%20video%20but%20it%20might%20also%20have%20audio%20or%20images%20associated%20with%20it.%0D%0A%0D%0AOf%20course%2C%20this%20will%20only%20work%20" title="Google Bookmarks"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=The%20video%20element&amp;link=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F" title="FriendFeed"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;t=The%20video%20element" title="HackerNews"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;title=The%20video%20element&amp;source=HTML5+Doctor+helping+you+implement+HTML5+today&amp;summary=The%20%26lt%3Bvideo%26gt%3B%20element%20is%20brand%20new%20in%20HTML%205%20and%20allows%20you%20to%2C%20get%20this%2C%20play%20a%20movie%20in%20your%20website%21%20The%20data%20of%20this%20element%20is%20supposed%20to%20be%20video%20but%20it%20might%20also%20have%20audio%20or%20images%20associated%20with%20it.%0D%0A%0D%0AOf%20course%2C%20this%20will%20only%20work%20" title="LinkedIn"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;h=The%20video%20element" title="NewsVine"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a><br />
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fhtml5doctor.com%2Fthe-video-element%2F&amp;t=The%20video%20element&amp;s=The%20%26lt%3Bvideo%26gt%3B%20element%20is%20brand%20new%20in%20HTML%205%20and%20allows%20you%20to%2C%20get%20this%2C%20play%20a%20movie%20in%20your%20website%21%20The%20data%20of%20this%20element%20is%20supposed%20to%20be%20video%20but%20it%20might%20also%20have%20audio%20or%20images%20associated%20with%20it.%0D%0A%0D%0AOf%20course%2C%20this%20will%20only%20work%20" title="Tumblr"><img src="http://html5doctor.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></p>
<p><br/><br/></p>
<p><a href="http://html5doctor.com/the-video-element/" rel="bookmark">The video element</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on June 18, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/the-video-element/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
<enclosure url="http://www.youtube.com/demo/google_main.mp4" length="4519255" type="video/mp4" />
		</item>
	</channel>
</rss>
