Thursday, January 1, 2015

[HTML5 Validation Error][Resolved] Named character reference was not terminated by a semicolon. (Or & should have been escaped as &.)

It’s a really careless mistake and the error message explained the problem clearly: You should add a semicolon after the Named character reference. Let’s use this case as an example:

The Case:
By using this site, you agree to the Terms of Use and Privacy Policy.<br><br>
<span>Copyright by aaa &copy 2013-<span id="current_year">2014</span> Powered by aaa.</span>

Add a semicolon after the Named character reference:
By using this site, you agree to the Terms of Use and Privacy Policy.<br><br>
<span>Copyright by aaa &copy; 2013-<span id="current_year">2014</span> Powered by aaa.</span>

No comments :

Post a Comment