Showing posts with label HTML5. Show all posts
Showing posts with label HTML5. Show all posts

Thursday, April 15, 2010

Enabling HTML5 in IE

If you have read my previous article "About HTML5" and gone through those links and seriously read those tutorials and articles about HTML5, then by now you should be able to make web page using HTML5. Some may have already started experimenting and found its not rendering  properly in IE. Here is small tip for those geeky ones who act than simply read and forget.

You may have noticed in HTML5 there are many new elements like < header>,<section>,<article> etc and the only way to acknowledge these new elements to IE is to use John Resig  HTML5 shiv technique.Using that technique, Remy Sharp has created an excellent mini script (html5.js) that enables all the new elements.

It is very easy to use, simply put the following code in the head element (this is because IE needs to know about the element before it comes to render them - so it can't sit in the footer of the page, i.e. below the elements in question. ). Also Its better to wrap it in an IE conditional call to reduce the http pulls for other browsers.
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

Hope that was useful!

Wednesday, April 14, 2010

About HTML5

These days everyone is talking about HTML5.
IS HTML5 READY? or NOT? When will it be ready?

There are even sites that showcase HTML5 made websites.
There are lots of tutorials on HTML5


And there are some sites that are experimenting HTML5
Just go through above links, certainly you will find your answers about HTML5.
Well, I enjoy learning, and this list was especially made for that purpose.

Happy Learning HTML5 now!