Monday, 28 November 2011

Understanding HTML5 Markup



HTML5 has recently introduced many new elements and APIs that introduce new behavorial capability.. some features include enhanced Video embedding, etc.  HTML5 also introduces new elements (like <article>, <header>, <nav>, <section>, <aside>, etc,) that enable the programmers to enrich the meaning and structure of your content and pages. These features allow you to write your pages so that you do not have to use the <div> elemts to structure everything, and instead they allow you to better express the semantic meaning of your content. This makes the code a little cleaner to read, and long-term will hopefully enable browsers and search engines to better understand and crawl your markup and provide even richer experiences.

Here, when you create a new ASP.NET MVC 3 project with the “Use HTML5 semantic markup” checkbox selected, Visual Studio will use semantic HTML instead of <div> elements within the layout.cshtml file that is generated for the new project. This means that the top of the site is wrapped in a <header> element, navigation links are surrounded by a >nav> element, and the footer is encapsulated within a <footer> element.
These all the small, yet smart tips to the effective usage of HTML5 programming!

No comments:

Post a Comment