This does not work because IE8 does not understand or "correctly" implement HTML tags such as <nav> .
Do not use HTML 5 until 2015. This is for two reasons:
The W3C recommendation for HTML5 was not finalized until December 2014, so any current browser version wonders what the final document will contain. The code that works now does not guarantee operation after this point (but probably will). Adding JS hacks at the top to make browsers compatible with HTML5 adds more potential compatibility issues.
By 2015, market share for IE8 is likely to be at minimal levels, for example. below 2-3%, in this case the benefits of IE8 support will be exceeded due to the cost of using HTML5 compatible code.
At the same time, itβs a good idea to use the HTML type of the document because it is advanced and backward compatible and uses a subset of HTML5 tags that are also valid in HTML4 (in other words, tags that are valid in HTML4 AND HTML5, which is most of them ) Personally, I like to use <div class="nav"></div> instead of <nav></nav> etc. Etc.
At the end of the day, do what you want, but you should be aware of these problems, at least especially in a world where HTML5 is a buzzword that is used frequently and inappropriately.
Nat darke
source share