www.htmlgoodies.com/primers/html/article.php/3865786
|
By Curtis Dicken February 18, 2010 Introduction to HTML5Since 2004, the future of web development known as HTML 5 (or sometimes Web Applications 1.0) has been envisioned, discussed and re-envisioned over and over again. Here we will take a look at some of the current highlights and help you envision how they may one day affect your web development.The FoundationThere are several aspects of HTML that HTML 5 is designed to improve on. First and foremost, it is intended to have a much more defined and explicit structure. It was decided early on that a basic page structure was needed. What that will eventually mean for the average web developer is that you will have to spend less time worrying about how a HTML element is going to render in IE versus Firefox versus Safari versus Opera versus you get the idea. Of course, you will never completely eliminate variances between browsers but I, for one, am looking forward to a significant reduction.Another goal is to make HTML much more web application friendly by including web application APIs. Lastly, because of the increasing demand for media, tags like the <audio> tag will allow developers to be able to quickly embed an audio file with a definition that looks as simple as <audio src="SomeAudioFile.ogg" controls="controls">Your browser does not support the audio element.</audio>. The text between the tags will cause browsers that dont understand the <audio> tag to present the text while browsers that do understand the tag will ignore the text between the open and close tags. The controls attribute tells the browser how to handle buttons like play and rewind. In with the NewThere are several new elements coming with HTML 5. Ill list each one below and give a brief explanation. Hopefully this will give you a good feel for how the web development landscape is changing and how HTML will become much more structured. Please note that some links to working examples can be found below. However, because of the inconsistent implementation of HTML 5 you may have to try different browsers to find one that supports a given element.
As you can see there are quite a few new elements in HTML 5, some more useful than others. I am especially excited about the media related tags like <audio>, <embed> and <video>. There are also some that I am having trouble envisioning how they will come into play, but I am trying to keep an open mind. Out with the OldThere is a growing list of elements that will not be supported in HTML 5. I wont waste space discussing them but here is the list as it stands now:Coming to a Browser near YouWith input from gigantic corporations like Apple, Google, IBM, Microsoft, Mozilla, Opera and many more, you might expect that the HTML 5 project could take a while for all parties to come to a consensus on anything. Well, youd be right. This project is continually evolving and is expected to for the foreseeable future. This is evidenced by the question marks on the HTML 5 specs for all referenced future releases.However, there is some good news. All of the major browsers, i.e. Firefox, Internet Explorer, Opera and Safari, have all started implementing at least some HTML 5. Currently, the leader of the pack is Opera with Safari trailing close behind. As you would expect, though, they are each adopting what they deem appropriate so there is currently little consistency across the browsers. ConclusionThere is obviously much more to HTML 5 than I have covered here. I just wanted to give you a quick overview of the new elements coming down the pipe. Of course, there are also significant upgrades to many HTML 4 elements that I did not discuss here. The most current project specs are housed on the w3c.org website if you are inclined to sift through them yourself. |