Hot Software News at Z5software
We deliver breaking news related to Software Development Industry
-
Dec25No Comments
I am getting this error when validating my home page:
Attribute “BORDER” is not a valid attribute. Did you mean “border”?
I am not sure how to fix this and would appreciate some help. The line of code cuasing the error is:
The line of code the error is on is:
This is one of the current version of the W3C validator’s “helpful” error messages, which simply aren’t helpful when trying to validate HTML4.
I think it’s because you’ve set a border for an
, which is not a valid attribute for that element (see Forms in HTML documents). Try using CSS like style=”border:0;” instead of border=”0″. Likely, you will also need to remove the “alt” attribute.The validator serves the same error message when validating HTML or XHTML, however the the Did you mean “border” message is only relevant in XHTML. The WDG validator is an alternative that is worth trying.
