joshbedo Posted February 28, 2011 Share Posted February 28, 2011 I have been trying to clean up code on this website i just built and downloaded a firefox plugin to check for validation easier and see what line something is giving an error. I just cleaned up alot and only have 19 errors and now i try to test it on the W3C website and get Sorry, I am unable to validate this document because on line 142 it contained one or more bytes that I cannot interpret as us-ascii (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication. The error was: ascii "\x85" does not map to Unicode i checked out line 142 and i dont see anything wrong with it. heres the link http://www.eriesd.org/central/central2 Quote Link to comment https://forums.phpfreaks.com/topic/229165-can-somebody-please-help-me-validate-this/ Share on other sites More sharing options...
joshbedo Posted February 28, 2011 Author Share Posted February 28, 2011 figured out what wasnt let me validate it was the character encoding i used a tidy html tool on a site and it changed my website encoding. now im just having problems with Line 151, Column 74: document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag …a href='/central/central2/article.php?id=34'><div class='drag-label'></div></a> The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). Quote Link to comment https://forums.phpfreaks.com/topic/229165-can-somebody-please-help-me-validate-this/#findComment-1180920 Share on other sites More sharing options...
KevinM1 Posted February 28, 2011 Share Posted February 28, 2011 The last line of the error states what's causing it. Quote Link to comment https://forums.phpfreaks.com/topic/229165-can-somebody-please-help-me-validate-this/#findComment-1180941 Share on other sites More sharing options...
haku Posted March 1, 2011 Share Posted March 1, 2011 Can't have block elements (div) inside inline elements (a). Quote Link to comment https://forums.phpfreaks.com/topic/229165-can-somebody-please-help-me-validate-this/#findComment-1181248 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.