- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Mon, 08 Oct 2012 11:30:01 +0300
- To: Michael Spillman <mkspllmn@gmail.com>
- CC: www-validator@w3.org
2012-10-08 2:57, Michael Spillman wrote: > HTML Validation does a good job of finding the errors for you but how do > I fix them? Usually by starting from the first error reported, finding its reason, and correcting the markup, and trying again, then repeating the procedure. Quite often, one error causes several error messages later. Of course, if you realize that there are several error messages of the same kind, you may need to do some global change. > Validating http://www.cosmicstudios.co.cc/ > Error [81]: "character X not allowed in attribute specification list" You seem to be using XHTML 1.0 Transitional. Many, if not most, of the error messages are caused by the "&" character. The simple guideline is: "C.4. Embedded Style Sheets and Scripts Use external style sheets if your style sheet uses < or & or ]]> or --. Use external scripts if your script uses < or & or ]]> or --." http://www.w3.org/TR/xhtml1/#guidelines That is, move the contents of the script element to a separate file, say foo.js, and replace the script element with <script src="foo.js" type="text/javascript"></script> Yucca
Received on Monday, 8 October 2012 08:30:34 UTC