views:

574

answers:

2
+4  Q: 

HTML5 for IE6.0

Hello!

Do you know any method to optimize this HTML Code to IE6 or 7 (or 8) without adding any HTML elements, or the IE is skipping all the HTML5 elements?

If i just want to format elements with CSS, - i dont want to use other features - is the document.createElement("nav") DOM element create enough to scam IE and make a plain HTML document?

<!DOCTYPE HTML>
<head>
<meta charset="UTF-8">
<title>title</title>
<link type="text/css" rel="stylesheet" href="reset.css">
<link type="text/css" rel="stylesheet" href="style.css">
</head>
<body>
<header>code of header</header>
<nav>
code of nav
</nav>
<section>
code of gallery
</section>
<article>
code of article
</article>
<footer>code of footer</footer>
</body>
</html>

Thank you.

More info about DOM create elements in IE6, IE7 and IE8 with html5 enabling script » here

A: 

IE8 does not support html5, just some random bits and pieces of it. IE6 or 7 even less.

vladv
+3  A: 
Jeff Fohl
Works fine for me even in IE7.0 which was the worst when i tried with the createelement method. Passed the test, thank you.
neduddki