It seems that new resources and articles for teaching and promoting  HTML5 are popping up almost daily. We’ve been given HTML5 templates in  the form of the HTML5 boilerplate and HTML5 Reset (although they both go beyond just HTML5 stuff). We’ve got a plethora of books to choose from that cover HTML5 and its related technologies. We’ve got shivs, galleries, and a physician to help heal your HTML5 maladies. And don’t forget the official spec.
From my own vantage point — aside from a few disputes  about what the term “HTML5″ should and shouldn’t mean — the web design  and development community has for the most part embraced all the new  technologies and semantics with a positive attitude.
While  it’s certainly true that HTML5 has the potential to change the web for  the better, the reality is that these kinds of major changes can be  difficult to grasp and embrace. I’m personally in the process of gaining a better understanding of the subtleties of HTML5′s various new features,  so I thought I would discuss some things associated with HTML5 that  appear to be somewhat confusing, and maybe this will help us all  understand certain aspects of the language a little better, enabling us  to use the new features in the most practical and appropriate manner  possible.
The Good (and Easy) Parts
The good stuff in HTML5 has been discussed pretty solidly in a number of sources including books by Bruce Lawson, Jeremy Keith, and Mark Pilgrim,  to name a few. The benefits gained from using HTML5 include improved  semantics, reduced redundancies, and inclusion of new features that  minimize the need for complex scripting to achieve standard tasks (like  input validation in forms, for example).
I think those are all commendable improvements in the evolution of the web’s markup language. Some of the improvements, however, are a little confusing, and do seem to be a bit revolutionary, as opposed to evolutionary, the latter of which is one of the design principles  on which HTML5 is based. Let’s look at a few examples, so we can see  how flexible and valuable some of the new elements really are — once we  get past some of the confusion.
An  Isn’t Just an Article 
Among the additions to the semantic elements are the new 
 tags that we’re all accustomed to in XHTML. The problem arises when we try to decipher how these tags should be used.
Article tags can be nested inside article tags — a concept that seems confusing at first glance.
Someone new to the language would probably assume that an 
Let’s consider a blog post as an example, which is the same example used in the spec. Naturally, we would think a blog post marked up in HTML5 would look something like this:
Title of Post
Content of post... Content of post...Comment by: Comment Author Comment #1 goes here... Comment by: Comment Author Comment #2 goes here... Comment by: Comment Author Comment #3 goes here... 
For brevity, I’ve left out some of the other HTML5 tags that might go into such an example. In this example, the 
It would not be invalid or wrong to structure a blog post like this. But according to the way 
Below is a screen grab from the spec, with 

Article tags can be nested inside article tags — a concept that seems confusing at first glance.
So, an 
“Think ofnot in terms of print, like “newspaper article” but as a discrete entity like “article of clothing” that is complete in itself, but can also mix with other articles to make a wider ensemble.”
— Bruce Lawson
So keep in mind that you can nest 
Section or Article?
Probably one of the most confusing things to figure out when creating an HTML5 layout is whether or not to use 
“Thearticleelement is [a] specialized kind ofsection. Use it for self-contained related content… Ask yourself if you would syndicate the content in an RSS or Atom feed. If the content still makes sense in that context, thenarticleis probably the right element to use.”
— Jeremy Keith, HTML5 for Web Designers
Keith’s explanation helps a lot, but then he goes on to explain that the difference between 
As a result, you might wonder why we have both. The main difference is that the 
Headers and Footers (Plural!)
Two other elements introduced in HTML5 are the 
, 










2 comments:
Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.
Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.
html5 converter
Post a Comment