<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>HTML - ReadWriteWeb</title>
      <link>http://www.readwriteweb.com/archives/html/</link>
      <description>HTML on ReadWriteWeb</description>
      <language>en</language>
      <copyright>Copyright 2009 Richard MacManus</copyright>
      <managingEditor>readwriteweb@gmail.com</managingEditor>
      <lastBuildDate>Wed, 18 Nov 2009 09:50:59 -0800</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/?v=4.23-en</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

      
      <item>
         <title>Video in HTML5: Still an Unresolved Issue</title>
		<description><![CDATA[<p><img alt="html5_video_logo.png" src="http://www.readwriteweb.com/images/html5_video_logo.png" />It only took <a href="http://en.wikipedia.org/wiki/HTML#First_specifications">3 years</a> to go from HTML2 to HTML4, but the HTML4.01 specifications were published 10 years ago and even though today's web looks very different, we are still waiting for HTML5. The<a href="http://en.wikipedia.org/wiki/Web_Hypertext_Application_Technology_Working_Group"> Web Hypertext Application Technology Working Group</a> started preliminary work on what is now known as HTML5 in 2004 and the <a href="http://www.w3.org/html/wg/">W3C HTML Working Group</a> was adopted this draft as the basis for the HTML5 specs in 2007. Some modern browsers already offer partial support for HTML5, but there are still quite a few issues that need to be resolved before we will see the finalized version of the HTML5 specifications. One area where there is still a <a href="http://www.webmonkey.com/blog/W3C_Drops_Audio_and_Video_Codec_Requirements_From_HTML_5">lot</a> of <a href="http://arstechnica.com/open-source/news/2009/07/decoding-the-html-5-video-codec-debate.ars">discussion</a> is support for <a href="http://www.youtube.com/html5">video</a> in HTML5.</p>]]>
<![CDATA[<p align="right"><em>Sponsor</em><br /><a href='http://d1.openx.org/ck.php?n=17153&amp;cb=17153' target='_blank'><img src='http://d1.openx.org/avw.php?zoneid=11205&amp;cb=17153&amp;n=17153' border='0' alt='' align="right" /></a></p>]]>

<![CDATA[<h2>What Codec?</h2>

<p>Philippe Le Hegaret, the interaction domain leader for the W3C, talked about this issue in an interview with <a href="http://www.webmonkey.com/blog/A_Brave_New_Web_Will_Be_Here_Soon__But_Browsers_Must_Improve">WebMonkey's Michael Calore</a>. </p>

<p>According to Le Hegaret, video support is still one of the main issues surrounding the development of HTML5. Safari and Chrome are both based on the same open-source WebKit engine. Video support, however, is not part of WebKit yet, so every vendor implements it differently. Currently, browser developer disagree over how to implement this feature and what codec to use. Apple wants to use uses H.264 and Mozilla, Google and Opera support Ogg Theora. As of now, HTML5 still includes the <a href="http://dev.w3.org/html5/spec/Overview.html#video">&lt;video&gt;</a> tag, but doesn't specify which codec to use.</p>

<h2>Transition from Plugins</h2>

<p>Until these issues are sorted out, users will have to continue to rely on plugins. Of course, the only way to do away with video plugins would be to make sure that every online video provider also adopted this new standard. As Le Hegaret rightly points out in the interview with WebMonkey, people don't like to install plugins, but everybody installs the Flash plugin because "if you can't see YouTube, your life on the web is pretty miserable. You're missing a lot." Le Hegaret acknowledges that there has to be a transition period before users can switch from Flash to HTML5 video.</p>

<p>For developers, the fact that the video is not running in a plugin that can't talk to the browser is a major advantage of having built-in video support in the browser. With video in HTML5, developers can connect the video to the rest of the page and have actions on the page or video influence other parts of the site.</p>

<h2>What About Microsoft?</h2>

<p>At today's PDC keynote, Microsoft noted that it has to improve support for HTML5 in its browser. While the company didn't say a lot about Internet Explorer 9, Microsoft&#160;candidly acknowledged that it has to improve JavaScript performance as well. After only a few weeks of development on IE9, the company is already matching the performance of the latest beta versions of Firefox and Chrome.</p>

<p><em>If you want to learn more about HTML5, also have a look at this story: </em><a href="http://www.readwriteweb.com/archives/5_exciting_things_in_html_5.php"><em>5 Exciting Things to Look Forward to in HTML5</em></a><em>.</em></p>]]>
<![CDATA[<strong><a href="http://www.readwriteweb.com/archives/video_in_html5_still_an_unresolved_issue.php#comments-open">Discuss</a></strong>]]>

</description>
         <link>http://www.readwriteweb.com/archives/video_in_html5_still_an_unresolved_issue.php</link>
         <guid>http://www.readwriteweb.com/archives/video_in_html5_still_an_unresolved_issue.php</guid>
         <category>Browsers</category>
         <pubDate>Wed, 18 Nov 2009 09:50:59 -0800</pubDate>
<author>Frederic Lardinois</author>
      </item>
      
      <item>
         <title>Bespin: Could Your Favorite HTML Editor Live in the Cloud?</title>
		<description><![CDATA[<p><img alt="bespin.jpg" src="http://www.readwriteweb.com/bespin.jpg" width="150" height="67" />The Cloud. We save our data to it, create documents in it, collaborate in it. But coding in the cloud? That has remained a decidedly desktop-centric pursuit. Now, even that may be changing thanks to <a href="https://bespin.mozilla.com/">Bespin</a>, a new prototype from Mozilla Labs. Flaunting thoughtful functionality and bearing an appropriately geeky name (a nod to the <a href="http://starwars.wikia.com/wiki/Bespin">home of the Lando Calrissian managed mining colony</a>), Bespin aims to become your dream HTML editor - from within the cloud.<br />
</p>]]>
<![CDATA[<p align="right"><em>Sponsor</em><br /><a href='http://d1.openx.org/ck.php?n=13823&amp;cb=13823' target='_blank'><img src='http://d1.openx.org/avw.php?zoneid=11205&amp;cb=13823&amp;n=13823' border='0' alt='' align="right" /></a></p>]]>

<![CDATA[<p>Bespin was created with the hope of making HTML coding easier, more collaborative, and "wicked fast." And even in this early version, it does an admirable job of accomplishing that. </p>

<p>The "<a href="http://labs.mozilla.com/projects/bespin/">initial experimental prototype</a>" features an impressive editing environment - with syntax highlighting, undo, import/export, and "preview in the browser," a command line, and a decidedly collaborative bent. There are also some thoughtful touches - like the blinking cursor.  </p>

<center><object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3195079&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=3195079&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object></center>

<p>All of that functionality stems from the Bespin team's goal of creating an HTML editor that mimicked existing editing environments and met developers' primary coding needs - while improving accessibility by divorcing it from the desktop. </p>

<p>Bespin's <a href="http://labs.mozilla.com/2009/02/introducing-bespin/">defining principles</a> include:</p>

<blockquote>
<ul>
<li>Ease of Use -- the editor experience should not be intimidating and should facilitate quickly getting straight into the code</li>
<li>Real-time Collaboration -- sharing live coding sessions with colleagues should be easy and collaboratively coding with one or more partners should Just Work</li>
<li>Integrated Command-Line -- tools like vi and Emacs have demonstrated the power of integrating command-lines into editors; Bespin needs one, too</li>
<li>Extensible and Self-Hosted -- the interface and capabilities of Bespin should be highly extensible and easily accessible to users through Ubiquity-like commands or via the plug-in API</li>
<li>Wicked Fast -- the editor is just a toy unless it stays smooth and responsive editing files of very large sizes</li>
<li>Accessible from Anywhere -- the code editor should work from anywhere, and from any device, using any modern standards-compliant browser</li>
</ul>
</blockquote>

<h2>Get Coding</h2>
Want to try it? That's the other nice thing about the Bespin prototype. It was <a href="http://ajaxian.com/archives/bespin-a-new-mozilla-labs-experimental-extensible-code-editor-using-canvas">designed to be used immediately</a>:

<blockquote>"Even though this is a tech preview, where the goal was to share it with the community, we wanted to make the editor as solid as possible. It had to scale to a large number of lines and continue to remain very responsive."</blockquote>

<p>All it takes is a browser - like Firefox 3 - that supports the HTML 5 technology that underlies Bespin. We were able to register, boot up the editor, and begin coding within a matter of seconds. The interface was incredibly responsive. We didn't experience any lag or delays - the one caveat being that we weren't trying any heavy coding either.</p>

<center><img alt="BespinScreen.jpg" src="http://www.readwriteweb.com/BespinScreen.jpg" width="600" height="392"  /></center>

<p>It's clear that a great deal of thought and attention went into this early version - and it's a safe bet that it will only get more impressive as time goes on.</p>

<h2>Dig Deeper</h2>
When you're ready to get serious, you can join the <a href="http://groups.google.com/group/bespin">Bespin Google Group</a>, chat with other developers on <a href="irc://irc.mozilla.org/bespin">#bespin irc</a>, or dig into the <a href="https://bespin.mozilla.com/docs/">Bespin code documentation</a>. If you're interested in getting a look under the hood, all of the <a href="http://hg.mozilla.org/labs/bespin/">source code</a> is available under <a href="http://www.mozilla.org/MPL/">Mozilla Public License</a>.

<p>We hope you'll take an opportunity to test drive <a href="https://bespin.mozilla.com/">Bespin</a>. And then, we'd love to hear how close it comes to meeting your expectations of a "dream editor."<br />
</p>]]>
<![CDATA[<strong><a href="http://www.readwriteweb.com/archives/bespin_html_editor_cloud.php#comments-open">Discuss</a></strong>]]>

</description>
         <link>http://www.readwriteweb.com/archives/bespin_html_editor_cloud.php</link>
         <guid>http://www.readwriteweb.com/archives/bespin_html_editor_cloud.php</guid>
         <category>HTML</category>
         <pubDate>Thu, 12 Feb 2009 23:00:00 -0800</pubDate>
<author>Rick Turoczy</author>
      </item>
      
      <item>
         <title>5 Exciting Things to Look Forward to in HTML 5</title>
		<description><![CDATA[<p><img src="http://www.readwriteweb.com/images/html5_dec08a.png" width="150" height="23"/>HTML 5 is the upcoming major revision of the HyperText Markup Language (HTML), the main method of marking up content for sharing on the World Wide Web. HTML's development stopped at HTML 4.01 in 1999, and since then web content has evolved so much that current HTML specifications are inadequate for today's requirements.</p>
<p><font style="float: right; margin-left: 10px;"><script type="text/javascript">digg_url = 'http://digg.com/programming/5_Exciting_Things_to_Look_Forward_to_in_HTML_5';digg_bgcolor = '#ffffff';digg_skin = 'normal';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></font>HTML 5 aims to improve HTML's interoperability and address the growing demand for more diverse and complex web content. It also addresses HTML 4's lacking features for web applications. In this post, we'll look at <strong>5 exciting new features in HTML 5</strong>.</p>]]>
<![CDATA[<p align="right"><em>Sponsor</em><br /><a href='http://d1.openx.org/ck.php?n=12968&amp;cb=12968' target='_blank'><img src='http://d1.openx.org/avw.php?zoneid=11205&amp;cb=12968&amp;n=12968' border='0' alt='' align="right" /></a></p>]]>

<![CDATA[<p><i>This is a guest post by <strong>Jacob Gube</strong>, a web developer/designer and author of <a href="http://sixrevisions.com/">Six Revisions</a>, a blog on web development  and design.</i></p>

<h2>A bit of history</h2>

<p>The conceptual thinking for HTML 5 began in late 2003. The <a href="http://www.w3.org/">World Wide Web Consortium</a> (W3C), the organization that oversees the web's standard protocols and guidelines, expressed interest in the HTML 5 draft originally developed by the <a href="http://www.whatwg.org/">Web Hypertext Application Technology Working Group</a> (WHATWG), a group formed in 2004 consisting of representatives of Apple, the Mozilla Foundation, and Opera Software. As a result, the <a href="http://www.w3.org/html/wg/">W3C HTML Working Group</a> was formed in 2007 to develop the specifications of HTML 5.</p>

<p>Development is underway, and HTML 5 is anticipated to reach W3C Candidate Recommendation status in 2012, though many modern browsers already have partial support for HTML 5 specifications.</p>

<h2>Exciting new features</h2>

<p><strong>1. New HTML elements that improve our ability to describe content</strong></p>

<p>HTML's primary task is to <strong>describe</strong> the structure of a web page. For example, by enclosing text between <code>&lt;p&gt;&lt;/p&gt;</code> elements, HTML tells the browser that the text between those elements is a <strong>paragraph</strong>.</p>

<p><img src="http://www.readwriteweb.com/images/html5_dec08b.jpg" width="531" height="141"/></p>

<p>Increasingly, diverse web content has outgrown HTML 4's ability to accurately describe the content of a web page. Streaming video and audio is now commonplace. Website regions such as navigation menus and branding areas (commonly located in the header) are now staples of most web pages. More importantly, advancements in JavaScript, Flash, and server-side technologies have allowed for the proliferation of <a href="http://en.wikipedia.org/wiki/Rich_Internet_application">rich Internet applications</a> (responsive, user-driven, browser-based applications), despite current HTML specifications.</p>

<p>By adding more <a href="http://www.ibm.com/developerworks/library/x-html5/" title="New elements in HTML 5 - IBM developerWorks.">HTML elements</a>, HTML 5 aims to give developers a better and more precise way of describing data.</p>

<p>For example, under current HTML specifications, this is how we would describe the structure of a typical web page:</p>

<p><img src="http://www.readwriteweb.com/images/html5_dec08c.jpg" width="531" height="380"/></p>

<p>The problem with this layout is that, <strong>to the browser</strong>, everything is a <code>&lt;div&gt;</code> element. The browser treats everything inside the <code>&lt;div&gt;</code> elements <strong>equally</strong> because it can't tell the difference between them, and "classes" and "ids," such as <code>content</code>, <code>sidebar</code>, and <code>footer</code>, change from website to website.</p>

<p>In HTML 5, this is how you might describe the layout of the same web page:</p>

<p><img src="http://www.readwriteweb.com/images/html5_dec08d.jpg" width="534" height="385"/></p>

<p>In this markup, the browser now knows what each part is. It knows that the web page's main content is inside the <code>&lt;article&gt;</code> element, that the website's navigation is inside the <code>&lt;nav&gt;</code> element, and so on.</p>

<p>Besides prettier-looking and more semantic markup, the practical implications are endless. It increases our markup's <strong>interoperability</strong>. For example, an external system, such as a search engine spider, would be able to more accurately determine what content on a web page is important. It can skip crawling the <code>&lt;nav&gt;</code> element and the <code>&lt;footer&gt;</code> element because they probably do not contain the main content of the web page. A well-formed HTML 5 document would therefore give search engines a better understanding of the content being displayed.</p>

<p>A crafty developer could create an application that pulls out just the <code>&lt;article&gt;</code> section of a group of websites, say, to aggregate it in a database, or generate a list of all the videos on a web page by finding all the <a href="http://www.whatwg.org/specs/web-apps/current-work/#video"><code>&lt;video&gt;</code> elements</a>.</p>

<p>Screen-reading software could give vision-impaired users a quicker way to traverse content sections. They could go to the <code>&lt;article&gt;</code> element directly if they wanted to read the main content of the web page, or go directly to the <code>&lt;nav&gt;</code> element if they wanted to navigate away from the page.</p>

<!--nextpage-->

<p><strong>2. Improved web forms handling</strong></p>

<p>These days, it's hard not to come across forms on websites. You encounter them when submitting a comment on a blog, registering for a user account, or sendinging mail in Gmail. HTML 5's proposed specifications include a huge revamping, called <a href="http://www.whatwg.org/specs/web-forms/current-work/">Web Forms 2.0</a>, of how web forms would be handled. It gives web developers a lot of options and new features for effectively and easily handling input fields and form submissions.</p>

<p>The most exciting thing about Web Forms 2.0 is <strong>form validation</strong>. Currently, developers are required to use JavaScript (client-side) or PHP (server-side) code to validate inputs. For example, many web forms contain required fields (perhaps for the username and email fields):</p>

<p><img src="http://www.readwriteweb.com/images/html5_dec08e.jpg" width="261" height="203"/></p>

<p>In HTML 4, the markup of the web form above would look something like:</p>

<p><img src="http://www.readwriteweb.com/images/html5_dec08f.jpg" width="511" height="175"/></p>

<p>Currently, you have to use scripting to validate a user's submission. In this example, developers would have to write their own validation code (or use a pre-made script, <a href="http://javascript-form-validation.googlecode.com/svn/trunk/validation.js">such as this one</a>) to ensure that required fields aren't left blank by accident or that submitted email addresses are valid (usually by doing something called "regular expression" matching).</p>

<p>In handling this form without requiring the author to include a validation script, HTML 5 (with the current Web 2.0 specifications) would give us additional element attributes, such as <code><a href="http://www.whatwg.org/specs/web-forms/current-work/#required0">required</a></code> and <code><a href="http://www.whatwg.org/specs/web-forms/current-work/#email">email</a></code> attributes, which automatically check that the username and email fields are not left blank and that the email address' format is valid.</p>

<p><img src="http://www.readwriteweb.com/images/html5_dec08g.jpg" width="511" height="175"/></p>

<p><strong>3. APIs for easier web application development</strong></p>

<p>HTML 5 will introduce several <a href="http://en.wikipedia.org/wiki/API">application programming interfaces</a> (APIs) to new and existing elements, aimed at improving web application development and addressing current issues with HTML 4's lack of ability to allow developers to mark up web applications.</p>

<p>One API is specifically for working with audio and video and will be used with the <code>&lt;audio&gt;</code> and <code>&lt;video&gt;</code> elements. It will provide audio and video playback capabilities and eliminate the need to use third-party applications, such as Flash, to develop and display media (at least for supported media files).</p>

<p><img src="http://www.readwriteweb.com/images/html5_dec08h.jpg" width="533" height="84"/></p>

<p>Check out this <a href="http://people.opera.com/howcome/2007/video/simple.html">scripted video controls demonstration</a>, which accompanies this <a href="http://dev.opera.com/articles/view/a-call-for-video-on-the-web-opera-vid/">Opera Developer Community article on the video element</a>.</p>

<!--nextpage-->

<p><strong>4. The <code>&lt;canvas&gt;</code> element allows image scripting on the fly</strong></p>

<p>Most people take in information more quickly and effectively through visuals. For example, between a table, numerical data, and a pie chart, the pie chart gives users a better feel for the scale and relationship of data (at least most of the time).</p>

<p><img src="http://www.readwriteweb.com/images/html5_dec08i.jpg" width="511" height="233"/></p>

<p>The downside of images is that they're <strong>static</strong>. If you create a pie chart using a traditional method (for example, with an image editor like Photoshop, or a graphing application like Excel), you wouldn't be able to adjust any data that changes without manually editing your graphics.</p>

<p>With the <a href="http://www.whatwg.org/specs/web-apps/current-work/#canvas"><code>&lt;canvas&gt;</code></a> element, you can take constantly changing (database-driven) data and apply it to a pie chart like the one above, as well as other types of 2D visuals (even a cat, if you're so inclined), via scripting.</p>

<p>The canvas API also allows users to interact with <code>&lt;canvas&gt;</code> elements. For example, you can write a script that responds to users' clicking on a particular section of the pie chart.</p>

<p><strong>5. Users can edit and interact with sections of a web page</strong></p>

<p>The section in the proposed HTML 5 specifications about <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html">User Interaction</a> describes new ways of marking up interactive web pages. The <code>contenteditable</code> attribute (a boolean attribute to which you assign either <code>true</code> or <code>false</code>) allows you to indicate which parts of a web page users can change.</p>

<p>This can be useful for wiki-style websites, in which content is user-generated. Another use of the <code>contenteditable</code> attribute would be to create web page templates. You can allow certain regions of a web page to be open to content editing and lock other regions that shouldn't be changed. This gives users of your website who aren't proficient in HTML an opportunity to input content safely without affecting critical areas that should be handled by more knowledgeable users.</p>

<p>At the document level, you can make an entire page editable via the <code>designMode</code> attribute, which accepts two values: <code>on</code> or <code>off</code>.</p>

<h2>In Sum</h2>

<p>The proposed specifications are slated to reach W3C Candidate Recommendation status in 2012, but that doesn't mean you have to <a href="http://wiki.whatwg.org/wiki/FAQ#When_will_we_be_able_to_start_using_these_new_features.3F">wait that long</a> to start using some of the new things in HTML 5. A lot of modern browsers, for example, have already implemented the <code>&lt;canvas&gt;</code> element (including Mozilla Firefox, which has partially implemented it <a href="https://developer.mozilla.org/en/HTML/Canvas">since version 1.5</a>).</p>

<p>HTML 5 will <strong>redefine</strong> how web developers mark up content. It will provide a better way to describe the content displayed on a web page, enable more complex content types, improve media and web application support, and increase the interoperability of HTML documents.</p>

<p>Note that things are still under heavy development and are bound to change; many of the proposed improvements may be heavily revised in the next few years or not implemented at all.</p>

<p>There are a lot of exciting new features in HTML 5. Share your own favorites in the comments.</p>

<h2>Further reading</h2>

<ul>
<li>You can read the <a href="http://www.w3.org/TR/html5/">latest working draft of HTML 5 specifications</a> on the W3C website.</p>
<li>Learn about the <a href="http://www.w3.org/TR/html5-diff/">major differences</a> between HTML 4 and HTML 5 on the W3C website.</li>
<li>IBM developerWorks has an excellent in-depth article on <a href="http://www.ibm.com/developerworks/library/x-html5/">new elements in HTML 5</a>.</li>
<li>Read about the people in charge of developing HTML 5 specifications on the <a href="http://www.w3.org/html/wg/">W3C HTML Working Group website</a>.</li>
<li>Find out <a href="http://wiki.whatwg.org/wiki/What_you_can_do">what you can do</a> to help HTML 5 development on the WHATWG wiki website.</li>
</ul>
<br /><h2>About the author</h2>
<p>Jacob Gube is a web developer/designer and author of <a href="http://sixrevisions.com/">Six Revisions</a>, a blog on web development  and design. If you want to connect with the author, you can <a href="http://twitter.com/jggube">follow him on Twitter</a>.</p>
]]>
<![CDATA[<strong><a href="http://www.readwriteweb.com/archives/5_exciting_things_in_html_5.php#comments-open">Discuss</a></strong>]]>

</description>
         <link>http://www.readwriteweb.com/archives/5_exciting_things_in_html_5.php</link>
         <guid>http://www.readwriteweb.com/archives/5_exciting_things_in_html_5.php</guid>
         <category>HTML</category>
         <pubDate>Thu, 18 Dec 2008 19:00:00 -0800</pubDate>
<author>Guest Author</author>
      </item>
      
   </channel>
</rss>