Why hidden element showing after </html> tag ? Need help

Hello ,
I am validating a site but it has no element after end of </html> tag but when i try to validate with w3 validator its show me :
Error Line 341, Column 38: Stray end tag script.

</html><script type=“text/javascript”>

But i have no code after 341 line. Please will you tell me why its happaning ? Site link . http://akotro.my3gb.com/index.html

Thank you

Your Google Analytics code comes after the </html> tag, but it should be placed before it. :slight_smile:

The link to your CSS file is broken, too.

i have no code after </html> tag here is the code look like…

    &lt;script src="js/jquery.js"&gt;&lt;/script&gt;
&lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
&lt;script src="js/slider/slider-js.js"&gt;&lt;/script&gt;
&lt;script src="js/slider/responsiveslides.min.js"&gt;&lt;/script&gt;
    &lt;script src="js/common.js"&gt;&lt;/script&gt;    
    

&lt;/body&gt;

</html>

Yes you do. Have a look at your source code in your browser. :slight_smile:

i am saying about that problem that i have no code after </html> but its showing but why? here is full page code ::

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="google-site-verification" content="cvPU1r6v5SY82A2a3WqKAfV1kNQXxsu3c4qGyY_bkQI" />
	<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW, ARCHIVE" />
 	<title>Clean minicab | Cheaper than London Black Taxi| Dracula Cars</title>

	<meta name="description" content="We offer cheap fare, bonuses, no card surcharge.Pay with your card, get 3% off from your payment. Cheap Heathrow,Canary Wharf airport transfer.">
	<meta name="keywords" content="heathrow arrivals, clean minicab, taxi, london, black taxi">
	<meta name="author" content="Dracula Cars Ltd | All rights reserved.">

	

	
	<meta name="ROBOTS" content="INDEX,FOLLOW">
	
	<meta name="revisit-after" content="7 days">
	        <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link rel="stylesheet" href="css/responsiveslides.css" />
				<!--[if lt IE 9]>
		<script>
		    var e = ("abbr,article,aside,audio,canvas,datalist,details," +
		        "figure,footer,header,hgroup,mark,menu,meter,nav,output," +
		        "progress,section,time,video").split(',');
		    for (var i = 0; i < e.length; i++) {
		        document.createElement(e[i]);
		    }
		</script>
		<![endif]-->
		
        <!--[if IE]> <link href="css/ie_only.css" rel="stylesheet" type="text/css"> <![endif]-->
        <!--[if lt IE 7]> <link href="ie_6_and_below.css" rel="stylesheet" type="text/css"> <![endif]-->
        <!--[if IE 7]><link href="css/ie_7.css" rel="stylesheet" type="text/css"> <![endif]-->
        <!--[if !lt IE 8]><![IGNORE[]]--><link href="css/recent.css" rel="stylesheet" type="text/css"> <!--<![endif]-->
        <!--[if !IE]>--> <link href="css/style.css" rel="stylesheet" type="text/css"> <!--<![endif]-->
		<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-37188491-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
		</head>
    <body class="page">

        <div class="header">
            <div class="header-content">
                <div class="container">
                    <a href="index.html"><img src="img/logo.png" alt="draculacars-logo"/></a>
					
                    <ul id="main-menu-top" class="nav nav-pills pull-right">
                        <li class="active"><a href="index.html">Home</a></li>
                        <li><a href="contact-us.html">Contact Us</a></li>
                        <li><a href="open-an-account.html">Open An Account</a></li>

                        <li class="btns"><button class="btn btn-danger" onClick="location.href='login.html'" type="button" id="login" >Login</button></li>

                        <li class="btns"><button class="btn" onClick="location.href='qoute.html'" type="button">Quote</button></li>
                    </ul>

                    <div class="clock">
                        <div id="Date"></div>
                        <ul class="clock-list">
                            <li id="hours"></li>
                            <li id="point">:</li>
                            <li id="min"></li>
                            <li id="point">:</li>
                            <li id="sec"></li>
                        </ul>
                    </div>
                </div>


                <div class="main-menu">
                    <div class="container">
                        <ul id="main-menu" class="nav nav-pills">
                            <li>
                                <a href="about-us.html">Dracula cars</a>
                                <ul class="sub-menus">
                                    <li>
                                        <ul class="sub-menu">
                                            <li class="menu-title"><a href="about-us.html">Company</a></li>
                                            <li><a href="about-us.html">About us</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <ul class="sub-menu">
                                            <li class="menu-title"><a href="online.html">Technology</a></li>
                                            <li><a href="online.html">Online</a></li>
                                            <li><a href="mobile.html">Mobile</a></li>
                                            <li><a href="telephone.html">Telephone</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <ul class="sub-menu">
                                            <li class="menu-title"><a href="tfl.html">Accreditation</a></li>
                                            <li><a href="tfl.html">TFL</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <ul class="sub-menu">
                                            <li class="menu-title"><a href="terms-and-condition.html">Policies</a></li>
                                            <li><a href="terms-and-condition.html">Terms & Condition</a></li>
                                            <li><a href="cancellation-and-refund.html">Cancellation & Refund</a></li>
                                            <li><a href="safety-policies.html">Safety Policies</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li>
                                <a href="heathrow.html">Services</a>
                                <ul class="sub-menus">
                                    <li>
                                        <ul class="sub-menu">
                                            <li class="floater-holder">
                                                <a href="heathrow.html">Airport transfers</a>
                                                <ul>
                                                    <li><a href="heathrow.html">Heathrow Airport</a></li>
                                                    <li><a href="london-city.html">London City Airport</a></li>
                                                    <li><a href="gatewick.html">Gatwick Airport</a></li>
                                                    <li><a href="stansted.html">Stansted Airport</a></li>
                                                    <li><a href="luton.html">Luton Airport</a></li>
                                                </ul>
                                            </li>
                                            <li class="floater-holder">
                                                <a href="canary-wharf.html">Area of Operation</a>
                                                <ul>
                                                    <li><a href="canary-wharf.html">Canary Wharf</a></li>
                                                    <li><a href="kensington.html">Kensington</a></li>
                                                    <li><a href="ladbroke-grove.html">Ladbroke Grove</a></li>
                                                    <li><a href="maida-vale.html">Maida Vale</a></li>
                                                    <li><a href="all-over-london.html">All over London</a></li>
                                                </ul>
                                            </li>
                                            <li><a href="corporate-executive-hire.html">Corporate Executive Hire</a></li>
                                            <li><a href="vip-chaffeur.html">Vip Chaffeur</a></li>
                                            <li><a href="as-direct-journey.html">As Direct Journey</a></li>
                                         </ul>
                                     </li>
                                </ul>
                            </li>
                            <li>
                                <a href="open-an-account.html">Account</a>
                                <ul class="sub-menus">
                                    <li>
                                        <ul class="sub-menu">
                                            <li><a href="open-an-account.html">Personal Account</a></li>
                                            <li><a href="business-account.html">Business</a></li>
                                         </ul>
                                     </li>
                                </ul>
                            </li>
                            <li><a href="our-team.html">Our team</a></li>
                            <li>
                                <a href="career.html">Careers</a>
                                <ul class="sub-menus">
                                    <li>
                                        <ul class="sub-menu">
                                            <li><a href="driver-job.html">Driver Job</a></li>
                                         </ul>
                                     </li>
                                </ul>
                            </li>
                            <li><a href="#">News</a></li>
                        </ul>
                        <div class="top-service pull-right">
                            <a href="top-service.html">> 24 Hour Pre-Book </a>
                        </div>

                    </div>
                    <div id="floating-menu"></div>
                </div>

             </div>
        </div>

        <div class="main-content">
            <div class="gradient-bg">
                <div class="container slider-container">
                    <div class="rslides_container">
                        <div class="qoute-button">
                            <button class="btn btn-primary" onClick="location.href='qoute.html'" type="button">Quote</button>
                        </div>
                        <ul class="rslides" id="slider2">
                            <li><img src="img/slider-img/slide-1.jpg" alt="" /></li>
                            <li><img src="img/slider-img/slide-2.jpg" alt="" /></li>
                            <li><img src="img/slider-img/slide-3.jpg" alt="" /></li>
                        </ul>
                    </div>
                    <div class="box-one">
                        <h2>
                            Welcome to Dracula Cars, our motto: "Chauffeur Services at minicab prices !!!"
                        </h2>
                    </div>

                </div>
            </div>
            <div class="container">

                <div class="pull-left">
                    <div class="box-four">
                        <h3>Haven't found what you are looking for?</h3>
                        <h3>Why is DRACULA CARS one of a kind?</h3>
                        <div class="like-box">
                            <p>You might also like</p>
                            <a href="discount-scheme.html"><img src="img/discount.jpg" alt='Discount' ></a>
                            <a href="save-money.html"><img src="img/save-money.jpg" alt='Save-Money'></a>
                            <a href="customer-satisfaction.html"><img src="img/customer.jpg" alt='Customer'></a>
                        </div>
                    </div>
                    <div class="box-three">
                        <div class="same-box">
                        	<p>Ready to expect more</p>
                            <ul class="nav nav-pills">
                                <li><a href="heathrow.html">Our services</a></li>
                                <li><a href="feedback.html">Testimonials</a></li>
                                <li><a href="our-team.html">Our drivers</a></li>
                            </ul>
                            <button class="btn btn-success" onClick="location.href='open-an-account.html'"  type="button">Register with us</button>
                        </div>
                    </div>
                    <div class="query-box">
                        <h3>OUR 3 EASY STEPS FOR BOOKING</h3>
                        <div class="query-link">
                            <a href="qoute.html"><img src="img/calculator.jpg" alt="Calculator"></a>
                            <a href="qoute.html"><img src="img/choose-car.jpg" alt="Choose Car"></a>
                            <a href="qoute.html"><img src="img/book-it.jpg" alt="Book It"></a>
                        </div>
                    </div>
                    <div class="box-two">
                        <h3>
                            " With so many ways to book a car, get in touch with us "Dracula Cars will give you more...
                        </h3>
                        <div class="link-img">
                            <a href="online.html"><img src="img/online.jpg" alt="Online"></a>
                            <a href="mobile.html"><img src="img/mobile.jpg" alt="Mobile"></a>
                            <a href="telephone.html"><img src="img/telephone.jpg" alt="Telephone"></a>
                        </div>
                    </div>
                </div>

                <div class="pull-right">
                    <div class="use-box">
                        <h3><a href="discount-scheme.html">WHY TO USE US!!</a></h3>
                        <ul>
                            <li><a href="discount-scheme.html">Special & Unique offers !!!</a></li>
							<li><a href="save-money.html">Save money using your &nbsp;&nbsp;&nbsp;debit/credit card !!!</a></li>
                            <li>Meet and Greet Service</li>
                            <li>Professional Drivers</li>
                            <li>Chauffeur Services at Minicab &nbsp;&nbsp;&nbsp;Services</li>
                        </ul>
                    </div>
                    <div class="use-box">
                        <h3>WHY TO BOOK ONLINE?</h3>
                        <ul>
                            <li>Full online Booking</li>
                            <li>Electronic Receipts</li>
                            <li><a href="ssl.html">256 SSL Highest Level</a></li>
                            <li><a href="secure-processing.html">3D Secure processing</a></li>
                            <li>Bonus Scheme</li>
                            <li>Lower price Pay By Card</li>
                        </ul>
                        <button class="btn" onClick="location.href='qoute.html'" type="button">Quote</button>
                    </div>
                    <div class="use-box">
                        <h3>Latest Feedback</h3>
                        <ul>
                            <li>Why Book Online?</li>
                            <li>Full online Booking</li>
                            <li>Electronic Receipts</li>
                        </ul>
                    </div>
                    <div class="feedback-button">
                        <button class="btn" onClick="location.href='customer-satisfaction.html'" type="button">Leave us a Feedback</button>
                    </div>
                </div>

                <div style="clear: both;">
                </div>
            </div>
        </div>


            <footer>
                <div class="container">
                    <ul class="nav nav-pills">
                     	<li><a href="about-us.html">Dracula Cars</a></li>
                        <li><a href="#">Clients</a></li>
                        <li><a href="#">News</a></li>
                        <li><a href="contact-us.html">Contact us</a></li>
                        <li><a href="sitemap.html">Sitemap</a></li>
                        <li><a href="terms-and-condition.html">Terms</a></li>
                        <div class="social-network">
                            <p>Find us:</p>
                            <a href="http://www.facebook.com/pages/Dracula-Cars-Ltd/534656633212380"><img src="img/social-logo/f.png" alt="Facebook"></a>
                            <a href="https://twitter.com/draculacar"><img src="img/social-logo/twitter.png" alt="Twitter"></a>
                            <a href="#"><img src="img/social-logo/gplus.png" alt="Google Plus"></a>
                        </div>
                    </ul>
                    <p>
                        <img src="img/pay.png" alt="Pay"><br/>
                        <strong>
                            Dracula Cars is a trading name of Dracula Cars Ltd.
                        </strong><br/>
                        Company Registartion Number: 08227211 | Operator Licence: 08146/01/01<br/>
                         Copyright &copy; 2012 - <script type="text/javascript">
							var today = new Date()
							var year = today.getFullYear()
							document.write(year)
						</script> <?php echo date("Y");?> <a href="http://www.draculacars.co.uk">draculacars.co.uk</a> | All rights reserved.
					</p>
                    <div class="bogus">
						<span id="siteseal"><script type="text/javascript" src="https://seal.starfieldtech.com/getSeal?sealID=KvKTflj8uBZFipfLFJ5ypnpPPCssMXgkSMT2stC5UsbpmiociiEoT"></script></span>
					    <span id="cdSiteSeal2"><script type="text/javascript" src="//tracedseals.starfieldtech.com/siteseal/get?scriptId=cdSiteSeal2&amp;cdSealType=Seal2&amp;sealId=55e4ye7y7mb73668eee5edb9806012100y7mb7355e4ye73445d9d91dabe80c27"></script></span>
                        Developed by <a title="We design. We develop your site" href="http://www.webogus.com">webogus</a></div>
                    </div>

            </footer>






        <script src="js/jquery.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/slider/slider-js.js"></script>
    <script src="js/slider/responsiveslides.min.js"></script>
        <script src="js/common.js"></script>


    </body>

</html>

Are you using a CMS or something like that? Something is adding that code for you.

I am not using CMS its normally coded with HTML and PHP

Did you add in the Analytics code yourself? If so, how?

The actual code at the bottom of the page reads:


    </body>

</html><script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-656974-8");
pageTracker._initData();
pageTracker._trackPageview();
</script>

so the closing tags for both the body and the html are in the wrong place. Everything before the </body> matches what you posted so the Analytics script has been added to the wrong place in the page after you took the copy of the source that you posted.