It's simple matter of standard HTML coding. No matter if you hard code the HTML elements or you write them using a server-side language, the general structure should be:
Doctype
(let's say <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">)
<html>
<head>
</head>
<body>
</body>
</html>
The head should nest the META tags and the CSS and JavaScript codes. The body will nest the content)
HTML, HEAD and BODY are not required by all means. They can miss, but within certain conditions. The safe way is to use them always. But the DOCTYPE is a must
I guess that simply adding
- Code:
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
or even the HTML5 declaration
- Code:
-
<!DOCTYPE HTML>
will force IE to exit from quirksmode