W3C Validation – "Stray end tag div" Errors
-
1. When I validate my website I receive the following errors:
Line 102, Column 66: Stray end tag div.
<div id=”test” style=”overflow: hidden; width: 1px; height: 1px;”>Line 102, Column 66: Cannot recover after last error. Any further errors will be ignored.
<div id=”test” style=”overflow: hidden; width: 1px; height: 1px;”>2. I know that “Stray end tag div” is related to an extra </div> but I can’t find what is wrong with the code. It’s seems valid to me.
<?php get_header( header.php ); ?> <!-- Popup Start --> <div id="test" style="overflow: hidden; width: 1px; height: 1px;"> <form method="post" action="http://ymlp.com/subscribe.php?id=gmwbqwmgmgb" target="_blank"> <table border="0" width="300px;" id="sign"> <tr><td colspan="2"><img src="<?php echo bloginfo('stylesheet_directory'); ?>/img/popup.jpg" width="380px" height="285px" alt="popup"/></td></tr> <tr><td colspan="2" align="left"><span>Sign up to receive new posts updates</span></td></tr> <tr> <td align="left"> <input id="signup" type="submit" value="Sign Up" class="mailinglistsubmit"></td> <td align="left" width="50px;"> <input name="YMP0" class="mailinglist" placeholder="Enter your E-mail" type="text" align="left" size="30px;"/></td></tr> </table> </form> </div> <a href="#test" class="nyroModal"></a> <!-- Popup End --> <div id="content"> <div class="inside"> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div class="post"> <p class="date"><?php the_date(); ?></p> <h1 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> <center> <a href="<?php the_permalink(); ?>"> <?php $attachments = get_children(array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order')); if ( ! is_array($attachments) ) continue; $count = count($attachments); $first_attachment = array_shift($attachments); $size = 'full'; ?> <?php echo wp_get_attachment_image($first_attachment->ID, $size); ?> </a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="<?php the_permalink(); ?>" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <?php endwhile; ?> <div class="page"> <div style="margin-left:50%;"> <a href='http://www.letthemstare.com/page/1' class='page'>1</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/2' class='page'>2</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/3' class='page'>3</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/4' class='page'>4</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/5' class='page'>5</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/6' class='page'>6</a></div> <div style="float: left;"><?php next_posts_link('« Previous Entries') ?></div> <div style="float: right;"><?php previous_posts_link('Newer Entries »') ?></div> <div class="clear"></div> </div> </div> </div> <?php get_footer( footer.php ); ?>Help would be appreciated.
Regards,Kfir Silis
http://www.letthemstare.com
-
Look at actual HTML outputted to the browser.
I went through the html source code as you suggested and still I haven’t found any mismatch or extra </div>.
Correct me if I’m wrong:
<!DOCTYPE html> <!-- HTML Lang Start --> <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--> <!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]--> <!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> <!-- HTML Lang End --> <head> <!-- Site Description Start --> <title>GIVEAWAY - Dresses, Skirts & More Given away Free | Let them stare</title> <meta name="description" content=" Let Them Stare is offering dresses, skirts & more as free giveaways. Each time you leave a comment, you are automatically entered in our weekly drawing" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="msvalidate.01" content="78D39F11EC3308DB3C2D2072662DF4E8" /> <!-- Linking Style Sheet Start --> <link rel="stylesheet" href="http://www.letthemstare.com/wp-content/themes/letthemstare/style.css" type="text/css" media="screen" /> <!-- Linking Style Sheet End --> <link rel="index" title="Let Them Stare" href="http://www.letthemstare.com/" /> <link rel="pingback" href="http://www.letthemstare.com/xmlrpc.php" /> <link rel="alternate" type="application/rss+xml" title="GIVEAWAY – Dresses, Skirts & More Given away Free | Let them stare RSS Feed" href="http://www.letthemstare.com/feed/" /> <!-- Site Description End --> <!-- Facebook OG Start --> <!-- the default values --> <meta property="fb:admins" content="100002163582175"/> <meta property="fb:app_id" content="303954662955703"/> <!-- if page is content page --> <meta property="og:title" content="GIVEAWAY - Dresses, Skirts & More Given away Free | Let them stare" /> <meta property="og:type" content="website" /> <meta property="og:url" content="http://www.letthemstare.com"/> <meta property="og:site_name" content="GIVEAWAY – Dresses, Skirts & More Given away Free | Let them stare" /> <meta property="og:description" content="Let Them Stare is offering dresses, skirts & more as free giveaways. Each time you leave a comment, you are automatically entered in our weekly drawing" /> <meta property="og:image" content="http://letthemstare.com/wp-content/themes/letthemstare/images/anastasia-gelfman-silis.jpg" /> <!-- Facebook OG Ends --> </head> <body> <!-- Popup Start --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript" src="http://www.letthemstare.com/wp-content/themes/letthemstare/js/jquery.nyroModal.custom.js"></script> <link rel="stylesheet" href="http://www.letthemstare.com/wp-content/themes/letthemstare/styles/nyroModal.css" type="text/css" media="screen"/> <script type="text/javascript"> $(function() { $('.nyroModal').nyroModal(); setTimeout( function(){ $('.nyroModal').nmCall();} , 20000);}); </script> <!-- Popup End --> <div id="header"> <div class="inside"> <div class="logo"><a href="http://www.letthemstare.com"><img src="http://www.letthemstare.com/wp-content/themes/letthemstare/images/logo.gif" border="0" alt="Blog Logo" /></a></div> <ul id="navigation"> <li><a href="http://www.letthemstare.com">Home</a></li> <li class="page_item page-item-93"><a href="http://www.letthemstare.com/press/">Press</a></li> <li class="page_item page-item-90"><a href="http://www.letthemstare.com/about/">About</a></li> <li class="page_item page-item-96"><a href="http://www.letthemstare.com/contact/">Contact</a></li> </ul> </div> </div> <div id="line"></div> <!-- Clicky Start --> <script src="//static.getclicky.com/js" type="text/javascript"></script> <script type="text/javascript">try{ clicky.init(66608630); }catch(e){}</script> <!-- Clicky End --> <!-- Quantcast Tag --> <script type="text/javascript"> var _qevents = _qevents || []; (function() { var elem = document.createElement('script'); elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js"; elem.async = true; elem.type = "text/javascript"; var scpt = document.getElementsByTagName('script')[0]; scpt.parentNode.insertBefore(elem, scpt); })(); _qevents.push({ qacct:"p-U2b0PEtVHrMaD" }); </script> <!-- End Quantcast tag --> <!-- Facebook HTML5 Like Start --> <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&appId=303954662955703"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <!-- Facebook HTML5 Like End --> </body> </html> <!-- Popup Start --> <div id="test" style="overflow: hidden; width: 1px; height: 1px;"> <form method="post" action="http://ymlp.com/subscribe.php?id=gmwbqwmgmgb" target="_blank"> <table border="0" width="300px;" id="sign"> <tr><td colspan="2"><img src="http://www.letthemstare.com/wp-content/themes/letthemstare/img/popup.jpg" width="380px" height="285px" alt="popup"/></td></tr> <tr><td colspan="2" align="left"><span>Sign up to receive new posts updates</span></td></tr> <tr> <td align="left"> <input id="signup" type="submit" value="Sign Up" class="mailinglistsubmit"></td> <td align="left" width="50px;"> <input name="YMP0" class="mailinglist" placeholder="Enter your E-mail" type="text" align="left" size="30px;"/></td></tr> </table> </form> </div> <a href="#test" class="nyroModal"></a> <!-- Popup End --> <div id="content"> <div class="inside"> <div class="post"> <p class="date">August 12, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/4-oclock-tea-dress-giveaway/">4 O’Clock Tea dress giveaway</a></h1> <center> <a href="http://www.letthemstare.com/4-oclock-tea-dress-giveaway/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/08/4-OClock-dress5.jpg" class="attachment-full" alt="Tea dress" title="4-O'Clock-Tea dress1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/4-oclock-tea-dress-giveaway/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">August 5, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/montage-pants-giveaway-2/">Montage pants giveaway</a></h1> <center> <a href="http://www.letthemstare.com/montage-pants-giveaway-2/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/08/TrianglePants5.jpg" class="attachment-full" alt="Montage Pants 1" title="Montage Pants 1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/montage-pants-giveaway-2/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">July 29, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/khaleesi/">Khaleesi top giveaway</a></h1> <center> <a href="http://www.letthemstare.com/khaleesi/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/07/JHPrincess1.jpg" class="attachment-full" alt="JHPrincess1" title="JHPrincess1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/khaleesi/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">July 22, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/killer-dress-giveaway/">Killer dress Giveaway</a></h1> <center> <a href="http://www.letthemstare.com/killer-dress-giveaway/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/07/KillerDress8.jpg" class="attachment-full" alt="Killer Dress" title="KillerDress6" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/killer-dress-giveaway/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">July 15, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/low-waist-maxi-giveaway/">Low-waist maxi giveaway</a></h1> <center> <a href="http://www.letthemstare.com/low-waist-maxi-giveaway/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/07/BkackPleatskirt3.jpg" class="attachment-full" alt="Low waist Maxi" title="LowwaistMaxi1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/low-waist-maxi-giveaway/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">July 8, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/manilla-blouse-giveaway-2/">Manilla blouse giveaway</a></h1> <center> <a href="http://www.letthemstare.com/manilla-blouse-giveaway-2/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/07/ManillaBlouse8.jpg" class="attachment-full" alt="Manilla Blouse" title="ManillaBlouse1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/manilla-blouse-giveaway-2/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">July 1, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/lamb-dress-giveaway/">LAMB dress giveaway</a></h1> <center> <a href="http://www.letthemstare.com/lamb-dress-giveaway/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/06/LambDress5.jpg" class="attachment-full" alt="Lamb Dress giveaway" title="LambDress1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/lamb-dress-giveaway/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">June 25, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/boutonniere-gown-giveaway-2/">Boutonnière gown giveaway</a></h1> <center> <a href="http://www.letthemstare.com/boutonniere-gown-giveaway-2/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/06/Boutonnière6.jpg" class="attachment-full" alt="Boutonniere gown" title="Boutonnieregown1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/boutonniere-gown-giveaway-2/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">June 18, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/salwar-fusion-pants-giveaway/">Salwar Fusion pants Giveaway</a></h1> <center> <a href="http://www.letthemstare.com/salwar-fusion-pants-giveaway/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/06/Salwar7.jpg" class="attachment-full" alt="Salwar" title="Salwarmadnesspants1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/salwar-fusion-pants-giveaway/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">June 11, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/norway-white-top-giveaway/">Norway white top Giveaway</a></h1> <center> <a href="http://www.letthemstare.com/norway-white-top-giveaway/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/06/NorwayWhite1.jpg" class="attachment-full" alt="Norway" title="NorwayWhite1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/norway-white-top-giveaway/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">June 4, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/amazing-medusa-dress-giveaway/">Amazing Medusa Dress Giveaway</a></h1> <center> <a href="http://www.letthemstare.com/amazing-medusa-dress-giveaway/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/06/6thMediusaDress15.jpg" class="attachment-full" alt="Medusa Dress" title="MediusaDressGiveaway1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/amazing-medusa-dress-giveaway/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="post"> <p class="date">May 27, 2012</p> <h1 class="title"><a href="http://www.letthemstare.com/perfect-summer-cocktail-dress-giveaway/">Perfect Summer Cocktail Dress Giveaway</a></h1> <center> <a href="http://www.letthemstare.com/perfect-summer-cocktail-dress-giveaway/"> <img width="940" height="627" src="http://www.letthemstare.com/wp-content/uploads/2012/06/5thGiveAway.jpg" class="attachment-full" alt="Cocktail Dress" title="PerfectSummerCocktail1" /></a> </center> <ul id="share" style="margin-bottom: -50px;"> <div class="fb-like" data-href="http://www.letthemstare.com/perfect-summer-cocktail-dress-giveaway/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="trebuchet ms"></div> </ul> </div> <div class="page"> <div style="margin-left:50%;"> <a href='http://www.letthemstare.com/page/1' class='page'>1</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/2' class='page'>2</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/3' class='page'>3</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/4' class='page'>4</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/5' class='page'>5</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/6' class='page'>6</a><span class="streck">-</span> <a href='http://www.letthemstare.com/page/7' class='page'>7</a></div> <div style="float: left;"><a href="http://www.letthemstare.com/page/2/" >« Previous Entries</a></div> <div style="float: right;"></div> <div class="clear"></div> </div> </div> </div> <div id="footer"> <div class="inside"> <p>Copyright © 2011-2012 | Let Them Stare | By <a href="https://plus.google.com/104768918105843698792/about?rel=author">Anastasia Gelfman Silis</a></p> </div> </div> </body> </html>You’ve ended the page on lines 99 & 100.
This is causing the problem, you must not add elements after</html>.Thank you for you reply.
1. I deleted lines 99 & 100 from the bottom of my header.
<!DOCTYPE html> <!-- HTML Lang Start --> <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--> <!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]--> <!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> <!-- HTML Lang End --> <head> <!-- Site Description Start --> <title><?php wp_title(''); ?></title> <meta name="description" content=" <?php if ( is_single() ) { the_excerpt(); } else { echo 'Let Them Stare is offering dresses, skirts & more as free giveaways. Each time you leave a comment, you are automatically entered in our weekly drawing'; } ?>" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="msvalidate.01" content="78D39F11EC3308DB3C2D2072662DF4E8" /> <!-- Linking Style Sheet Start --> <link rel="stylesheet" href="<?php echo bloginfo('stylesheet_directory'); ?>/style.css" type="text/css" media="screen" /> <!-- Linking Style Sheet End --> <link rel="index" title="Let Them Stare" href="http://www.letthemstare.com/" /> <link rel="pingback" href="http://www.letthemstare.com/xmlrpc.php" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <!-- Site Description End --> <!-- Facebook OG Start --> <?php if (have_posts()):while(have_posts()):the_post(); endwhile; endif;?> <!-- the default values --> <meta property="fb:admins" content="100002163582175"/> <meta property="fb:app_id" content="303954662955703"/> <!-- if page is content page --> <?php if (is_single()) { ?> <meta property="og:url" content="<?php the_permalink() ?>"/> <meta property="og:title" content="<?php single_post_title(''); ?>" /> <meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" /> <meta property="og:type" content="product" /> <meta property="og:image" content="<?php if (function_exists('catch_that_image')) {echo catch_that_image(); }?>" /> <!-- if page is others --> <?php } else { ?> <meta property="og:title" content="GIVEAWAY - Dresses, Skirts & More Given away Free | Let them stare" /> <meta property="og:type" content="website" /> <meta property="og:url" content="<?php bloginfo('url'); ?>"/> <meta property="og:site_name" content="<?php bloginfo('name'); ?>" /> <meta property="og:description" content="<?php bloginfo('description'); ?>" /> <meta property="og:image" content="http://letthemstare.com/wp-content/themes/letthemstare/images/anastasia-gelfman-silis.jpg" /> <?php } ?> <!-- Facebook OG Ends --> </head> <body> <!-- Popup Start --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript" src="<?php echo bloginfo('stylesheet_directory'); ?>/js/jquery.nyroModal.custom.js"></script> <link rel="stylesheet" href="<?php echo bloginfo('stylesheet_directory'); ?>/styles/nyroModal.css" type="text/css" media="screen"/> <script type="text/javascript"> $(function() { $('.nyroModal').nyroModal(); <?php if ( is_front_page() && !is_paged() ) { echo "setTimeout( function(){ $('.nyroModal').nmCall();} , 20000);";} ?> }); </script> <!-- Popup End --> <div id="header"> <div class="inside"> <div class="logo"><a href="<?php echo site_url(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/logo.gif" border="0" alt="Blog Logo" /></a></div> <ul id="navigation"> <li><a href="<?php echo site_url(); ?>">Home</a></li> <?php wp_list_pages('title_li='); ?> </ul> </div> </div> <div id="line"></div> <!-- Clicky Start --> <script src="//static.getclicky.com/js" type="text/javascript"></script> <script type="text/javascript">try{ clicky.init(66608630); }catch(e){}</script> <!-- Clicky End --> <!-- Quantcast Tag --> <script type="text/javascript"> var _qevents = _qevents || []; (function() { var elem = document.createElement('script'); elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js"; elem.async = true; elem.type = "text/javascript"; var scpt = document.getElementsByTagName('script')[0]; scpt.parentNode.insertBefore(elem, scpt); })(); _qevents.push({ qacct:"p-U2b0PEtVHrMaD" }); </script> <!-- End Quantcast tag --> <!-- Facebook HTML5 Like Start --> <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&appId=303954662955703"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <!-- Facebook HTML5 Like End --> </body> </html>The W3C errors jumped to 45 errors so I undo that action.
2. Should I remove these lines and work in fixing the new errors or should I replace the position of lines 99 & 100?
The W3C errors jumped to 45 errors so I undo that action.
You’re going against W3C standards and therefore I have no suggestions for question 2.
I want to correct the code as per W3C standards.
On one hand, I have a website with 2 errors only as per W3C standards.
You’ve noted that lines 99 & 100 are incorrect but if I’m deleting these lines I’m going even further away from W3C standards.My question is how should I approach this issue?
Continue to solve the subsequent errors, work your way through but always start at the first error.
I will re-struct my code as per the classic tag order:
<html>
<head>…</head>
<body>
<header>…</header>
<section>…</section>
<footer>…</footer>
</body>
</html>Meaning I will delete line 99 & 100 and fix the subsequent errors.
That is much more work than I’ve expected 🙂
Anyway, thanks allot for your help.
The topic ‘W3C Validation – "Stray end tag div" Errors’ is closed to new replies.