Re: MarkUp Validation Service Problem

On Mon, 26 May 2003, H. Ray Battels wrote:

> In the following "form" data I can't get vlidation for the term: border="0".

It's because the DTD that you validate against does not allow the border
attribute in some context. Simple as that.

Please remember that validation only checks a document against a DTD that
you specify (though some validators make a guess on a DTD if you
incorrectly fail to provide one). Nothing more, nothing less.

If you have problems in validation, you should post the URL, not an
extract of code. Specifically, the URL would reveal the DTD.

> Line 41, column 77: there is no attribute "BORDER" (explain...).
>
> I am sure there is a border attribute in the image tag, isn't there?

You don't need to guess or ask. You can check the DTD. If you don't know
how to do that, why do you validate? (This is something that I ask very
often. Nothing personal.)

You are using a border attribute in an input element. No published DTD
allows it there. On the practical side, that attribute is used by some
people since some versions of Netscape draw a border around an image
submit button unless you use that attribute.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Monday, 26 May 2003 14:22:08 UTC