<?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>Kaizou &#187; HTML 5</title>
	<atom:link href="http://www.kaizou.org/tag/html-5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kaizou.org</link>
	<description>This is Web 2.71828</description>
	<lastBuildDate>Sun, 16 May 2010 21:17:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>HTML 5 offline web applications</title>
		<link>http://www.kaizou.org/2009/04/html-5-offline-web-applications/</link>
		<comments>http://www.kaizou.org/2009/04/html-5-offline-web-applications/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 17:21:21 +0000</pubDate>
		<dc:creator>David Corvoysier</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[cache-manifest]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[offline]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.kaizou.org/?p=355</guid>
		<description><![CDATA[HTML 5 provides a new caching feature to support offline web applications. Basically, you can specify in a specific file called the &#8220;cache manifest&#8221; the caching policy to apply to a particular web page. To activate the HTML 5 caching feature for a specific document, you only need to specify the URI of the cache [...]]]></description>
			<content:encoded><![CDATA[<p>HTML 5 provides a new caching feature to support <a href="http://www.w3.org/TR/offline-webapps/" alt="HTML 5 offline web applications">offline web applications</a>.</p>
<p>Basically, you can specify in a specific file called the &#8220;cache manifest&#8221; the caching policy to apply to a particular web page.</p>
<p>To activate the HTML 5 caching feature for a specific document, you only need to specify the URI of the cache manifest file in the <code>manifest</code> attribute of the <code>&lt;html&gt;</code> element.</p>
<pre>
<code>&lt;!DOCTYPE HTML&gt;
&lt;html manifest="myapp.cache"&gt;
...</code>
</pre>
<p>The file that references the cache manifest file is called the <a href="http://www.whatwg.org/specs/web-apps/current-work/#concept-appcache-master" alt="HTML 5 cache master entry">master entry</a>.</p>
<p>Please note that to be properly parsed by the browser, the manifest file must have a <code>text/cache-manifest</code> MIME type (which means that you will need either to add a custom file type extension binding to your web server or to specify manually the mime-type, for instance using PHP <code>header</code> directive).</p>
<p>A cache manifest file typically looks like this:</p>
<pre>
<code>CACHE MANIFEST
index.html
style.css
images/logo.png

NETWORK:
search.php</code>
</pre>
<p>This file specifies several files to cache (the cache <a href="http://www.whatwg.org/specs/web-apps/current-work/#concept-appcache-explicit" alt="HTML 5 cache explicit entries">explicit entries</a>), and then specifies that search.php should never be cached (it is said to belong to the <a href="http://www.whatwg.org/specs/web-apps/current-work/#concept-appcache-onlinewhitelist" alt="HTML 5 cache online white-list">online white list</a>), so that any attempt to access that file will bypass the cache.</p>
<p>Whenever the user browses to the page corresponding to a document to which a cache manifest is associated, the browser must check on the server if the latter has been modified:</p>
<ul>
<li>If it hasn&#8217;t, then the cached content is used,</li>
<li>If a new version of the cache manifest exists, then the cached content is considered as staled and reloaded from the server.</li>
</ul>
<p>The cache manifest for a document may also contain <a href="http://www.whatwg.org/specs/web-apps/current-work/#concept-appcache-fallback" alt="HTML 5 cache fallback entries">fallback entries</a> that can be used if the browser can&#8217;t retrieve the original content. Below is an example where a static image is used when the retrieval of a dynamically generated image fails:</p>
<pre>
<code>CACHE MANIFEST
FALLBACK:
images/mirror-effect.php server-busy.jpg</code>
</pre>
<p>HTML 5 also defines an <a href="http://www.whatwg.org/specs/web-apps/current-work/#application-cache-api" alt="HTML 5 application cache API">application cache API</a> to manually trigger cache updates:</p>
<ul>
<li><a href="http://www.whatwg.org/specs/web-apps/current-work/#dom-appcache-update" alt="HTML 5 cache update method"><code>update()</code></a>: updates the cache for the current document in the background,</li>
<li><a href="http://www.whatwg.org/specs/web-apps/current-work/#dom-appcache-swapcache" alt="HTML 5 swap cache method"><code>swapCache()</code></a>: reflow the HTML document using updated cached content,</li>
<li><a href="http://www.whatwg.org/specs/web-apps/current-work/#handler-appcache-onupdateready" alt="HTML 5 cache updateready event"><code>onupdateready()</code></a>: event triggered when the cache content has been updated,</li>
<li><a href="http://www.whatwg.org/specs/web-apps/current-work/#handler-appcache-onobsolete" alt="HTML 5 cache obsolete event"><code>onobsolete()</code></a>: event triggered when the cache content has been marked as obsolete,</li>
<li>&#8230;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kaizou.org/2009/04/html-5-offline-web-applications/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HTML 5 &lt;audio&gt; &amp; &lt;video&gt; elements</title>
		<link>http://www.kaizou.org/2009/04/html-5-audio-video-elements/</link>
		<comments>http://www.kaizou.org/2009/04/html-5-audio-video-elements/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 17:08:37 +0000</pubDate>
		<dc:creator>David Corvoysier</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[HTML 5]]></category>

		<guid isPermaLink="false">http://www.kaizou.org/?p=333</guid>
		<description><![CDATA[One of the most revolutionary concept introduced by HTML 5 is the native support of audio and video playback in web pages. Two new HTML elements have been defined for that purpose: &#60;audio&#62; and &#60;video&#62;, based on the generic media element type. Media elements use a common set of attributes: src: defines the source of [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most revolutionary concept introduced by <a href="http://www.w3.org/TR/html5/" alt="HTML W3C specification">HTML 5</a> is the native support of audio and video playback in web pages.</p>
<p>Two new HTML elements have been defined for that purpose: <a href="http://www.w3.org/TR/html5/video.html#audio" alt="HTML 5 audio element"><code>&lt;audio&gt;</code></a> and <a href="http://www.w3.org/TR/html5/video.html#video" alt="HTML 5 video element"><code>&lt;video&gt;</code></a>, based on the generic <a href="http://www.w3.org/TR/html5/video.html#media-element" alt="HTML 5 media elements">media element type</a>.</p>
<p><a href="http://www.w3.org/TR/html5/video.html#media-element" alt="HTML 5 media elements">Media elements</a> use a common set of attributes:</p>
<ul>
<li><a href="http://www.w3.org/TR/html5/video.html#attr-media-src" alt="HTML 5 media element src attribute"><code>src</code></a>: defines the source of the media to render,</li>
<li><a href="http://www.w3.org/TR/html5/video.html#attr-media-autoplay" alt="HTML 5 media element autoplay attribute"><code>autoplay</code></a>: boolean to activate|prevent immediate playback,</li>
<li><a href="http://www.w3.org/TR/html5/video.html#attr-media-loop" alt="HTML 5 media element loop attribute"><code>loop</code></a>: boolean to activate|prevent automatic looping on content,</li>
<li><a href="http://www.w3.org/TR/html5/video.html#attr-media-controls" alt="HTML 5 media element controls attribute"><code>controls</code></a>: boolean to display|hide browser playback user interface.</li>
</ul>
<p><a href="http://www.w3.org/TR/html5/video.html#video" alt="HTML 5 video element"><code>&lt;video&gt;</code></a> and <a href="http://www.w3.org/TR/html5/video.html#audio" alt="HTML 5 audio element"><code>&lt;audio&gt;</code></a> elements can contain elements to be displayed to the user in older browsers that do not support these new elements.</p>
<p>Below is an example of how to use the <a href="http://www.w3.org/TR/html5/video.html#audio" alt="HTML 5 audio element"><code>&lt;audio&gt;</code></a> element:</p>
<pre>
<code>&lt;audio src="audio.ogv" controls width="100" height="50"&gt;
    &lt;a href="audio.ogv"&gt;Listen&lt;/a&gt;
&lt;/audio&gt;</code>
</pre>
<p>Alternatively to the <a href="http://www.w3.org/TR/html5/video.html#attr-media-src" alt="HTML 5 media element src attribute"><code>src</code></a> attribute, the content to be rendered can be specified using one or more <a href="http://www.w3.org/TR/html5/video.html#the-source-element" alt="HTML 5 source element"><code>&lt;source&gt;</code></a> elements, each of them describing a specific <a href="http://www.w3.org/TR/html5/video.html#media-resource" alt="HTML 5 media resource">media resource</a>.</p>
<p>Each <a href="http://www.w3.org/TR/html5/video.html#the-source-element" alt="HTML 5 source element"><code>&lt;source&gt;</code></a> can be identified by its <a href="http://www.w3.org/TR/html5/video.html#attr-media-src" alt="HTML 5 media element src attribute"><code>src</code></a> and <a href="http://www.w3.org/TR/html5/video.html#attr-source-type" alt="HTML 5 source type attribute"><code>type</code></a> attributes, optionally complemented by a <a href="http://www.w3.org/TR/html5/video.html#attr-source-codecs" alt="HTML 5 media element codecs attribute"><code>codecs</code></a> attribute:</p>
<pre>
<code>&lt;audio controls width="100" height="50"&gt;
     &lt;source src="audio.ogg" type="audio/ogg; codecs=vorbis"&gt;
    &lt;source src="audio.spx" type="audio/ogg; codecs=speex"&gt;
    &lt;source src="audio.oga" type="audio/ogg; codecs=flac"&gt;
&lt;/audio&gt;</code>
</pre>
<p>The  <a href="http://www.w3.org/TR/html5/video.html#video" alt="HTML 5 video element"><code>&lt;video&gt;</code></a> element has an optional <a href="http://www.w3.org/TR/html5/video.html#attr-video-poster" alt="HTML 5 video element poster attribute"><code>poster</code></a> attribute that can be used to define an image to be displayed before the video is played:</p>
<pre>
<code>&lt;video src="oggy.ogv" poster="oggy.jpg" /&gt;</code>
</pre>
<p>These new <a href="http://www.w3.org/TR/html5/video.html#media-element" alt="HTML 5 media elements">media elements</a> also support a set of handy javascript method, properties and events, to allow the fine-grained control of the rendered UI.</p>
<ul>
<li><a href="http://www.w3.org/TR/html5/video.html#dom-media-play" title="HTML 5 media play method">play()</a></li>
<li><a href="http://www.w3.org/TR/html5/video.html#dom-media-pause" title="HTML 5 media pause method">pause()</a></li>
<li><a href="http://www.w3.org/TR/html5/video.html#dom-media-currenttime" title="HTML 5 media playback time attribute">currentTime</a>: current playback time,</li>
<li><a href="http://www.w3.org/TR/html5/video.html#dom-media-duration" title="HTML 5 media duration attribute">duration</a>: overall duration of the media,</li>
<li><a href="http://www.w3.org/TR/html5/video.html#dom-media-playbackrate" title="HTML 5 media playback rate attribute">playbackRate</a>: playback speed (can be negative !),</li>
<li><a href="http://www.w3.org/TR/html5/video.html#event-play" title="HTML 5 media play event">onplay()</a>: content has just start playing,</li>
<li><a href="http://www.w3.org/TR/html5/video.html#event-pause" title="HTML 5 media pause event">onpause()</a>: content playback has just been paused,</li>
<li><a href="http://www.w3.org/TR/html5/video.html#event-error" title="HTML 5 media error event">onerror()</a>: an error occurred,</li>
<li>&#8230;</li>
</ul>
<pre>
<code>&lt;script&gt;
function playVideo(url){
     var video = document.getElementById("video");
     video.setAttribute("src",url);
}
&lt;/script&gt;
&lt;video id="videoPlayer" controls=false/&gt;
&lt;p&gt;
     &lt;button type="button"
             onclick="video.playbackRate = -2;"&gt;
         Rew
     &lt;/button&gt;
     &lt;button type="button"
             onclick="video.play();"&gt;
         Play
     &lt;/button&gt;
     &lt;button type="button"
             onclick="video.pause();"&gt;
         Pause
     &lt;/button&gt;
     &lt;button type="button"
                 onclick="video.playbackRate = 2;"&gt;
         FF
     &lt;/button&gt;
&lt;/p&gt;</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kaizou.org/2009/04/html-5-audio-video-elements/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>New HTML 5 block-level elements</title>
		<link>http://www.kaizou.org/2009/03/new-html-5-block-level-elements/</link>
		<comments>http://www.kaizou.org/2009/03/new-html-5-block-level-elements/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 11:59:51 +0000</pubDate>
		<dc:creator>David Corvoysier</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[HTML 5]]></category>

		<guid isPermaLink="false">http://www.kaizou.org/?p=299</guid>
		<description><![CDATA[The HTML 5 specification introduces new block elements that can be used to structure documents: &#60;section&#62;: represents a document or application section (a content column for instance), &#60;article&#62;: represents an independent piece of content inside a document/section (a blog entry for instance), &#60;aside&#62;: represents a piece of content not directly related to the displayed content [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.w3.org/TR/html5/" alt="W3C HTML 5 Draft">HTML 5 specification</a> introduces new block elements that can be used to structure documents:</p>
<ul>
<li><a href="http://www.w3.org/TR/html5/semantics.html#the-section-element" alt="HTML 5 section element"><code>&lt;section&gt;</code></a>: represents a document or application section (a content column for instance),</li>
<li><a href="http://www.w3.org/TR/html5/semantics.html#the-article-element" alt="HTML 5 article element"><code>&lt;article&gt;</code></a>: represents an independent piece of content inside a document/section (a blog entry for instance),</li>
<li><a href="http://www.w3.org/TR/html5/semantics.html#the-aside-element" alt="HTML 5 aside element"><code>&lt;aside&gt;</code></a>: represents a piece of content not directly related to the displayed content (typically a sidebar),</li>
<li><a href="http://www.w3.org/TR/html5/semantics.html#the-header-element" alt="HTML 5 header element"><code>&lt;header&gt;</code></a>: represents a document header,</li>
<li><a href="http://www.w3.org/TR/html5/semantics.html#the-footer-element" alt="HTML 5 footer element"><code>&lt;footer&gt;</code></a>: represents a document footer,</li>
<li><a href="http://www.w3.org/TR/html5/semantics.html#the-nav-element" alt="HTML 5 nav element"><code>&lt;nav&gt;</code></a>: represents a block of navigation links (typically a blog navigation bar),</li>
<li><a href="http://www.w3.org/TR/html5/semantics.html#the-dialog-element" alt="HTML 5 dialog element"><code>&lt;dialog&gt;</code></a>: can be used to render a chat session, using complementary <a href="http://www.w3.org/TR/html5/semantics.html#the-dt-element" alt="HTML 5 dt element"><code>&lt;dt&gt;</code></a> (talker) and <a href="http://www.w3.org/TR/html5/semantics.html#the-dt-element" alt="HTML 5 dd element"><code>&lt;dd&gt;</code></a> (quote) tags,</li>
<li><a href="http://www.w3.org/TR/html5/embedded-content-0.html#the-figure-element" alt="HTML 5 figure element"><code>&lt;figure&gt;</code></a>: can be used to provide textual information about an embedded content,</li>
<li><a href="http://www.w3.org/TR/html5/semantics.html#the-address-element" alt="HTML 5 address element"><code>&lt;address&gt;</code></a>: represents a document/section contact block,</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kaizou.org/2009/03/new-html-5-block-level-elements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
