What is so Special About HTML5?

7:29 PM Unknown 0 Comments


HTML5 is a markup language for structuring and presenting content for the World Wide Web and a core technology of the Internet. It is the fifth revision of the HTML standard (created in 1990 and standardized as HTML 4 as of 1997) and, as of December 2012, is a W3C Candidate Recommendation. Its core aims have been to improve the language with support for the latest multimedia while keeping it easily readable by humans and consistently understood by computers and devices (web browsersparsers, etc.). HTML5 is intended to subsume not only HTML 4, but also XHTML 1 and DOM Level 2 HTML.




Five Things You Should Know About HTML 5
  1. It’s not one big thing
     is not one big thing; it is a collection of individual features. So you can’t detect “ support,” because that doesn’t make any sense. But you can detect support for individual features, like canvas, video, or geolocation. You may think of  as tags and angle brackets. That’s an important part of it, but it’s not the whole story. The  specification also defines how those angle brackets interact with JavaScript, through the Document Object Model ().  doesn’t just define a <video> tag; there is also a corresponding   for video objects in the . You can use this  to detect support for different video formats, play a video, pause, mute audio, track how much of the video has been downloaded, and everything else you need to build a rich user experience around the <video> tag itself.
  1. You don’t need to throw anything away
Love it or hate it, you can’t deny that  4 is the most successful markup format ever. builds on that success. You don’t need to throw away your existing markup. You don’t need to relearn things you already know. If your web application worked yesterday in  4, it will still work today in . Period. Now, if you want to improve your web applications, you’ve come to the right place. Here’s a concrete example:  supports all the form controls from  4, but it also includes new input controls. Some of these are long-overdue additions like sliders and date pickers; others are more subtle. For example, the email input type looks just like a text box, but mobile browsers will customize their onscreen keyboard to make it easier to type email addresses. Older browsers that don’t support the email input type will treat it as a regular text field, and the form still works with no markup changes or scripting hacks. This means you can start improving your web forms today, even if some of your visitors are stuck on IE 6.
  1. It’s easy to get started
    “Upgrading” to  can be as simple as changing your doctype. The doctype should already be on the first line of every  page. Previous versions of  defined a lot of doctypes, and choosing the right one could be tricky. In , there is only one doctype: <!DOCTYPE html> Upgrading to the  doctype won’t break your existing markup, because obsolete elements previously defined in HTML 4 will still render in . But it will allow you to use — and validate — new semantic elements like <article><section><header>, and <footer>
  1. It already works
    Whether you want to draw on a canvas, play video, design better forms, or build web applications that work offline, you’ll find that  is already well-supported. Firefox, Safari, Chrome, Opera, and mobile browsers already support canvas, video, geolocation, local storage, and more. Google already supports micro-data annotations. Even Microsoft — rarely known for blazing the trail of standards support most HTML5 features.
  1. It’s here to stay
    Tim Berners-Lee invented the world wide web in the early 1990s. He later founded the  to act as a steward of web standards, which the organization has done for more than 15 years. Here is what the  had to say about the future of web standards, in July 2009:
Today the Director announces that when the  2 Working Group charter expires as scheduled at the end of 2009, the charter will not be renewed. By doing so, and by increasing resources in the  Working Group, hopes to accelerate the progress of  and clarify ’s position regarding the future of .
          HTML5 is here to stay!



sources
http://www.html5rocks.com/en/

0 comments: