Depending on who you ask, HTML 5 is either the next big step toward creating a more semantic web, or it's a disaster that bogs down the web with a hodgepodge of incomplete tags and tags.
The problem on both sides of the debate is that very few sites are using HTML 5 in a natural environment, so theoretical solutions to the now-recognized problems remain largely untested.
Even so, it's not hard to see the benefits and potential pitfalls of next-generation network markup tools.
content
How is HTML 5 different?
First, what do we express through HTML 5? First off, what do we mean by HTML 5? In theory, we express everything - new semantic structure tags, such as canvas or offline storage API specifications, and new inline semantic tags. Nonetheless, we limit the practical reasons (PS: browser support issues) to structure tags only. canvas, offline storage, local video or geolocation APIs are all great, however they are not yet supported uniformly by all browsers.
"But wait" you say, "most browsers don't support the new structural elements either!" It's true, but the vast majority of them will happily accept any tag you want to create. Even IE6 can handle new tabs, although if you want to style it with CSS, you'll need a little help from JavaScript.
One thing you need to remember when styling new tabs is that unknown tabs do not have default styles in most browsers. They are also considered row-level elements. Still, since most of HTML 5's new tags can be constructed, we'll give them the behavior of block-level elements. The solution is to make sure you include display:block; in your CSS style.
To help understand some of the new stuff in HTML 5 today, let’s get down to business and start using some new structural elements.
Finally, a document type that anyone can remember
The first thing we need to do to create an HTML 5 document is to use the new document type. Now, if you clearly remember the HTML 4 or XHTML 1.x document types, you are a bigger naughty guy than we are. Whenever we create a new page, we have to open an old file, cut and paste the document type definition.