My website displays perfectly in all browsers but IE any suggestions?


Staff member
I have built a website using wordpress that displays fine in all browsers except IE (surprise surprise). I'm currently using VirtualBox to try to sort it out but the page is so completely borked I'm not even sure where to start.

<strong>Running a validator gives me the following errors:</strong>

Line 2, Column 91: "LANG" is not a reserved name
…ttp://" lang="en-US" xmlns:eek:g="…

Error Line 2, Column 91: cannot continue because of previous errors
…ttp://" lang="en-US" xmlns:eek:g="…

<strong>Here's the relevant code via the site's theme editor:</strong>

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "" &lt;?php language_attributes(); ?&gt;&gt;

Due to the weirdness of the problem I'm not even sure if this is the real issue. Why does microsoft hate us?!

--- EDIT ---
I failed to mention the web address which is <a href="" rel="nofollow"></a>

<strong>Here is the full header code:</strong>

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "" &lt;?php language_attributes(); ?&gt;&gt;
&lt;head profile=""&gt;
    &lt;title&gt;&lt;?php bloginfo('name'); ?&gt; | &lt;?php is_front_page() ? bloginfo('description') : wp_title(''); ?&gt;&lt;/title&gt;
    &lt;meta http-equiv="content-type" content="&lt;?php bloginfo('html_type'); ?&gt;; charset=&lt;?php bloginfo('charset'); ?&gt;" /&gt;

    &lt;link rel="stylesheet" type="text/css" href="&lt;?php bloginfo('stylesheet_url'); ?&gt;" /&gt;

    &lt;?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?&gt;

    &lt;?php wp_head(); ?&gt;

    &lt;link rel="alternate" type="application/rss+xml" href="&lt;?php bloginfo('rss2_url'); ?&gt;" title="&lt;?php printf( __( '%s latest posts', '' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?&gt;" /&gt;
    &lt;link rel="alternate" type="application/rss+xml" href="&lt;?php bloginfo('comments_rss2_url') ?&gt;" title="&lt;?php printf( __( '%s latest comments', '' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?&gt;" /&gt;
    &lt;link rel="pingback" href="&lt;?php bloginfo('pingback_url'); ?&gt;" /&gt;

&lt;!-- Place this snippet wherever appropriate --&gt;
&lt;script type="text/javascript"&gt;
  (function() {
    var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
    li.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);

&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); = id;
  js.src = "//";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;script type="text/javascript"&gt;
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = '';
s1.parentNode.insertBefore(s, s1);

&lt;script src="//" type="text/javascript" &gt;&lt;/script&gt;