W3C home > Mailing lists > Public > www-validator@w3.org > October 2012

Re: [VE][81] Add Subject Here

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Mon, 08 Oct 2012 11:30:01 +0300
Message-ID: <50728F09.9090300@cs.tut.fi>
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 --."


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>

Received on Monday, 8 October 2012 08:30:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:07 UTC