W3 : character data is not allowed here html validation error


Posted on : Tue, 28th Apr 15 01:47 pm UTC
100+ votes

Error : Line 144, Column 6: character data is not allowed here

<div id="mydiv"></a>

This is the most common error message that once may receive while trying to validate their html page. The reasons that may cause this error,



Advertisements





Note : Sometimes some unwanted characters may get added to your file (copy + paste file format issues) that may cause this issue, in such a case you must check that the file encoding format is UTF-8, if not just do that using Text-Editors like Notepad++ or SublimeText.

Code2care's mission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.

Follow us : Facebook - Twitter - Google +