Click to See Complete Forum and Search --> : what is wrong?


webstarter
02-13-2005, 11:24 AM
I am getting the following errors when validating my site:

(1)an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified - <hr size=2 align="center" noshade/>

(2)character "<" is the first character of a delimiter but occurred as data - ...S</a> | <a href="contact.html>CONTACT</a> </p>

(3)an attribute value literal can occur in an attribute specification list only after a VI delimiter - <hr size=2 align="center" noshade/>

(4)document type does not allow element "xx" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag - (xx being p or h3 etc) <p>Tel: 0208 444 4444<br /> or <h3>RESTAURANT MENU</h3> or <p><a href="#starters">Starters</a> <br />

How can i fix them?

AdamGundry
02-13-2005, 02:52 PM
In XML (and hence XHTML) all attribute values must be quoted, and attribute minimisation is not supported. So, for example, you would use:

<hr size="2" align="center" noshade="noshade" />

Also note that all those attributes are deprecated. You should be using CSS for styling effects.

Adam

webstarter
02-13-2005, 03:18 PM
thank you for that, that has helped but I am still getting the same error on two lines:

the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified

<hr size="2" align="center" noshade/>

The last > is the problem

AdamGundry
02-14-2005, 06:30 AM
You appear to still have the minimised version of the last attribute (noshade). To be valid XML this has to be written in full (noshade="noshade").

Adam