Exercise 5
Explanation
Cause
- Semantic mark-up language was used in a script in the XHTML document:
- So, the validator says, document type does not allow element "p" here. The validator also says, character "<" is the first character of a delimiter but occurred as data; in other words, the character "<" should not be there; — and there are more messages from the validator, because the single error has upset the whole construction of the page source. Fix it, and all of the reprimands will disappear along with it.
Correction
- Remove the script from the XHTML document. Put the script in an external .js file:
Review
