Posts

Showing posts from 2014

HTML5 commonly used structural elements and support for older browsers

HTML5 commonly used Structural Elements for website development and web application development. <section> <article> <aside> <header> <footer> <nav> <figure> <figcaption> <time> <mark> <main> <details> <progress> All the above HTML5 elements are not supported in older browsers. You can make the all new elements support for older browsers specially Internet Explorer (IE 8 and below). You can use one of the methods to recognize these new elements as per your requirement. 1. document.createElement("section") In the above method just you can add one line of code in head  Section (between<script></script>).This method can be best if you are not using all HTML5 elements. By using this method you can reduce load time of html5shiv.js library.  2. //cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.js In above method load the above ...

Basic Structure of HTML5

        Today I am trying to explain the basic structure of HTML5. This post is for beginners and anybody who can use this post as snippet for future use. You can use any text editor to create this code or any rich html editors for the same. Before going to basic structure of html5 let me explain what is html5 in short. What is HTML5? HTML5 is the latest standard for HTML. What is Basic Structure of  HTML5?  <!DOCTYPE html> <html> <head> - - - - - - - -  </head> <body> - - - - - - - -  </body> </html>       The above snippet is a simple and basic html5 structure. When i say Basic that means your webpage can be called as html5 web page. In the above code we did not used any other HTML5 new Tags but still we have created html5 web page with one line of code and this document can be called as  HTML5 document (webpage). We achieved this with the one line of...