Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Attribute "BORDER" is not a valid attribute. Did you mean "border"Attr



3:44 pm on Oct 27, 2009 (gmt 0)

5+ Year Member

I was validating my html and got this warning.

<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

My code is using lowercase border attribute.

I checked some websites and it looks like a valid attribute.

What gives ?

Is there anyway to fix this warning without css ?

[edited by: incrediBILL at 4:04 pm (utc) on Oct. 27, 2009]
[edit reason] removed URLs, see TOS #13 [/edit]


3:55 pm on Oct 27, 2009 (gmt 0)

10+ Year Member

BORDER is not a part of the W3C specs for the INPUT [w3schools.com] tag. Use CSS instead: style="border: 0px;"


1:54 pm on Oct 28, 2009 (gmt 0)

5+ Year Member

What is the <DOCTYPE>?

Featured Threads

Hot Threads This Week

Hot Threads This Month