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://www.w3.org/TR/html4/strict.dtd" lang="en-US" xmlns
g="http://ogp.me/ns#…
Error Line 2, Column 91: cannot continue because of previous errors
…ttp://www.w3.org/TR/html4/strict.dtd" lang="en-US" xmlns
g="http://ogp.me/ns#…
<strong>Here's the relevant code via the site's theme editor:</strong>
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="http://www.SleepHug.com" rel="nofollow">www.SleepHug.com</a>
<strong>Here is the full header code:</strong>
<strong>Running a validator gives me the following errors:</strong>
Line 2, Column 91: "LANG" is not a reserved name
…ttp://www.w3.org/TR/html4/strict.dtd" lang="en-US" xmlns
Error Line 2, Column 91: cannot continue because of previous errors
…ttp://www.w3.org/TR/html4/strict.dtd" lang="en-US" xmlns
<strong>Here's the relevant code via the site's theme editor:</strong>
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" <?php language_attributes(); ?>>
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="http://www.SleepHug.com" rel="nofollow">www.SleepHug.com</a>
<strong>Here is the full header code:</strong>
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<title><?php bloginfo('name'); ?> | <?php is_front_page() ? bloginfo('description') : wp_title(''); ?></title>
<meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( __( '%s latest posts', '' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', '' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<!-- Place this snippet wherever appropriate -->
<script type="text/javascript">
(function() {
var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
li.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//platform.stumbleupon.com/1/widgets.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);
})();
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script>
<script src="//svpply.com/api/all.js#xsvml=1" type="text/javascript" ></script>
</head>