HTML 4 validation problem

windows

Guest
I'm trying to get my page to validate:<br />
<!-- m --><a class="postlink" href="http://www.fluffygryphlets.btinternet.co.uk/lan/">http://www.fluffygryphlets.btinternet.co.uk/lan/</a><!-- m --><br />
but when I run it through validator.w3.org I get the following message:<br />
<br />
Line 48, column 21: ID "SPECIAL" already defined<br />
<TR><TD ID="B"><A ID=Special HREF=http://www.htmlforums.com/archive/index.php/"photo.shtml">Photography</A></TD></TR><br />
<br />
<br />
I defined this ID in my stylesheet so I can use it several times - have I coded it wrongly, if not how should I get it to validate properly?<!--content-->If you want to use it multiple times, you have to use class instead.<br />
<br />
#special { blahblahblah; }<br />
id="special"<br />
<br />
<br />
becomes<br />
<br />
<br />
.special { blahblahblah; }<br />
class="special"<!--content-->^ What the hot and cold one said ^<br />
<br />
<br />
<br />
See [link (<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.fluffygryphlets.btinternet.co.uk%2Flan%2F&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1&outline=1&sp=1">http://validator.w3.org/check?uri=http% ... ine=1&sp=1</a><!-- m -->)] for error list (presently just 12 ID errors).<br />
<br />
Have you looked at the [validator results (<!-- m --><a class="postlink" href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.fluffygryphlets.btinternet.co.uk%2Flan%2F&warning=1&profile=css2">http://jigsaw.w3.org/css-validator/vali ... ofile=css2</a><!-- m -->)] for your CSS? No errors, but some warnings to look out for. Check the CSS again after editing, it is easy to slip in a silly typo.<!--content-->Thanks Arctic_Dragon, that was it :-) My test page now validates 100%<br />
<br />
Giz: Thanks, most of the warnings in the CSS are deliberate - I'm sure one or two are valid though, so I'll have a go at those once I've managed to update the rest of my pages!<!--content-->
 
Back
Top