W3C home > Mailing lists > Public > www-validator@w3.org > February 2001

RE: Validating "Input" Tag

From: Thanasis Kinias <tkinias@asu.edu>
Date: Thu, 22 Feb 2001 14:56:50 -0700
To: "'CJ Jimmymac (Jim Maciorowski)'" <jimmymac@citicom.com>
Cc: www-validator@w3.org
Message-id: <A021872EC2BDD411AB3600902746A05501604784@mainex4.asu.edu>
Jim Maciorowski wrote:

> As I am borrowing the following code from Netmind and their customer
service is none-to-
> second, perhaps someone on this list could give me a clue.  I've validated
the following 
> code from my web page using TidyGUI and it comes back as being fine:

> <input type="image"
> 	src="http://mindit.netmind.com/images/mindit.gif" border="0">

> But when I run it through the validator, it errors on "border":
>  border="0"></td>
          ^
> Error: there is no attribute "BORDER"
> So I'm kinda lost at this point...which is correct?

According to HTML 4.01 (and XHTML 1.0), border can only be applied to
<table>, <img>, and <object>.  See
<http://www.w3.org/TR/html4/index/attributes.html>.  AFAIK, there was never
an HTML version that allowed border on <input>.  Note that this means you
cannot have a <input type="image"> appear sans border in NS4 and still be
valid.

If TidyGUI is not flagging this as an error, it's broken or it's validating
against a proprietary (non-W3C) DTD.


Thanasis Kinias
Information Dissemination Team, Information Technology
Arizona State University
Tempe, Ariz., U.S.A.

Qui nos rodunt confundantur
et cum iustis non scribantur. 
Received on Thursday, 22 February 2001 17:04:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:55 GMT