Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid Markup HTML5 - stray end tag script

Tags:

validation

I cannot figure out why I am receiving the below errors after trying to validate my website. On line 184, I only have the words , so I'm not sure where the language is that it is showing below.

Line 184, Column 209: Stray end tag script. …b/js/hosting/cp/js_source/whv2_001.js">…

Line 184, Column 209: Cannot recover after last error. Any further errors will be ignored.

…b/js/hosting/cp/js_source/whv2_001.js">…

http://www.daleandhannah.com/CMI/site/index.html

like image 854
Hannah Harris Avatar asked Dec 12 '11 20:12

Hannah Harris


2 Answers

You have <script>...</script> tags appearing AFTER the </html> tag in your page. That code should be moved inside the <body>...</body> tags.

like image 132
Highway of Life Avatar answered Sep 22 '22 09:09

Highway of Life


You got 2 <script> tags outside of your <html> tag.

<!-- text below generated by server. PLEASE REMOVE -->
<!-- Counter/Statistics data collection code -->
<script language="JavaScript" src="http://l.yimg.com/d/lib/smb/js/hosting/cp/js_source/whv2_001.js">
</script><script language="javascript">geovisit();</script>
<noscript><img src="http://visit.webhosting.yahoo.com/visit.gif?us1323720443" alt="setstats" border="0" width="1" height="1"></noscript>

Judging from the first comment, this markup is being added by your hoster. In your hosting panel, search and deactivate any "counter/statistics" tool.

like image 34
Roman Avatar answered Sep 22 '22 09:09

Roman