Log in

View Full Version : Fixing Validation Error



gold2040
04-17-2006, 10:50 AM
Hey

How would I go about fixing this error


Error Line 136 column 106: there is no attribute "WIDTH".
...ngine/gfx/go.jpg" name="image" width="30" height="20" align="absmiddle">
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

here's the actual line in question

<input type="image" src="http://www.ancientabandonware.co.uk/search/engine/gfx/go.jpg" name="image" width="30" height="20" align="absmiddle">

Cheers

Tom Evans

Twey
04-17-2006, 01:02 PM
style="width:30px;height:20px;" instead of the width and height attributes.

gold2040
04-17-2006, 04:47 PM
Cheers

FIxed it :)