|
Posted by Benjamin Niemann on 03/06/06 22:50
terry wrote:
> I'm a little confused! I validate my html code at the following two
> sites and I get two different answers with respect to the font tag.
> w3.org tells me to Not use the # symbol and rankquest.com tells me I
> should. Which is right? I would lean toward w3.org being correct.
>
> <font color="C16162">
> <font color="#C16162">
>
> http://www.rankquest.com/tools/Html-Validator.php
>
> http://validator.w3.org/
mmm... judging from the reports (w3c: 85 errors, rankquest: 265 warnings),
the color attribute seems to be just a minor problem. And at #118 rankquest
goes completely crazy...
If Els is right and you did not quote the color value, then follow his
advise. But on the other hand the validator says nothing about removing the
#, but it says clearly that the value must be quoted - so you might be
talking about something else.
From the brief look at rankquest (which I did not know before), it performs
more checks than just pure validation. Unfortunately the report seem to be
rather buggy.
The validator does *not* look at (CDATA) attribute values. It does not know
that colors should be in the form '#RRGGBB' or that href should be an URI.
This is out of the scope of a pure validator.
Rankquest seems to check many attribute values for correctness, but I'm not
sure if and how well it's on the validation part.
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Navigation:
[Reply to this message]
|