Tip: Right click on the banner blow and open it into a new windows or tab.

Repairing and Upgrading Your PC by O'Reilly Media

August 12, 2009

A First Look at HTML 5

Officially, HTML 4.1 was supposed to be the last word on HTML. According to the W3C, HTML 4.1 was complete and concise, and required no further work. But that was not good enough for the HTML user community, who formed the Web Hypertext Application Technology Working Group (WHATWG). This group grew strong enough to force the W3C to form an official HTML 5 working group a few years ago, and what they have eventually created is the very small seed that will one day become HTML 5 (I say 'one day' because the official specification expects HTML 5 to be completely functional and ready by the year 2022 - and no, that wasnt a typo, I did mean 2022).
Ok, I see the look on your face. Why the heck would you want to start using a version of HTML that will only be complete two decades from now? The answer is simple. HTML 5 is already being implemented into browsers right now: Opera 10 as well as Firefox 3.5 are the first browsers offering partial HTML 5 support. Internet Explorer and Safari are set to follow suite shortly. However, more than this is the simplicity of the built in functionality of HTML 5. Read on and you may find that you can't wait to start using HTML 5 yourself. Let's jump straight in and explore the new features that HTML 5 offer.
General Changes
The first cool thing--and this is a biggie in my book--is the basic DOCTYPE declaration. Wouldn't you like to get rid of all that clutter that you dont really know what it is or why you need it? How about building a doctype like this?



Thus, a simple document could look like this:




Document


Main Heading


This is an example document




Come on, I can see you jumping for joy! But there's more.
,
and

The
tag is intended to be a container to hold content, like the content of a web page. The
tags divide the article into sections, and the
tag creates a holder for header tags that can demarcate a section, as shown below.



An Overview of HTML 5


Looking at Spec Changes



This is the first paragraph.


This is the second paragraph.




Tags


Laying out the markup



This is the subsection P1


...


This markup now moves the header tags into containers, rather than having them free-roaming the HTML document. As HTML becomes more than just markup for displaying browser content we find that it is evolving into a stricter, more defined language. This will make it more flexible for the day that HTML5 will replace Flash. Yes, you heard me. HTML5 has a tag that will in time allow it to render images and Flash-like animations. This is perhaps one of the reasons it is only expected to be complete in 2022.

No comments: