Exercise 6
Explanation
Cause
- An ampersand was used in a script inside the XHTML page source:
- So, the validator warns us by saying that an ampersand is the first character of a delimiter but occurred as data;
— in other words, the ampersand is meant to be the first part an XHTML element, or delimiter, but it has been found in a string of data.
(The W3C CSS Validation Service is even more sensitive to this mistake and will mark it as an error outright.)
Correction
- Remove the script from the XHTML page source, and put the script in an external .js file:
<script type="text/javascript" src="whatever.js"> </script>
- Remove the script from the XHTML page source, and put the script in an external .js file:
Review
