October 9, 201016 yr Just went to vaildate my website and its giving me 30 errors, Most of them are <img> tags for some strange reason: Line 22, Column 51: there is no attribute "WIDTH" <IMG SRC="images/logo.png" ALT="some text" WIDTH=800 HEIGHT=100></div> or Line 22, Column 33: there is no attribute "ALT" <IMG SRC="images/logo.png" ALT="some text" WIDTH=800 HEIGHT=100></div> or Line 22, Column 65: element "IMG" undefined <IMG SRC="images/logo.png" ALT="some text" WIDTH=800 HEIGHT=100></div> Is the code im using old or misspelt? etc..? I also have Line 122, Column 77: end tag for "IMG" omitted, but OMITTAG NO was specified <A HREF="packfour.html"><IMG SRC="images/packagefourinfo.png" ALT="Home"></A> or Line 131, Column 3: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag <p>I give you my word that the performance such as uploading, downloading Are these just simple errors?
October 9, 201016 yr with your img issues you need to add quotes around your widths so they should look like this: <IMG SRC="images/logo.png" ALT="some text" WIDTH="800" HEIGHT="100"></div> Also what doctype are you using as really you should be coding in lower-case rather than capitals. The other errors look like you might not have closed a tag somewhere and so the bits of code that are showing errors is because you aren't allowed to have those tags within the element you have forgotten to close. If these suggestions don't work, it might help to either post a link to the page in question or post the whole code.
October 9, 201016 yr true the width and height don't need to be added to the image if the images are the right size, but if those attributes are needed within the element then they still need to be coded correctly for them to validate
October 9, 201016 yr Author Wow really who would of thought that caps mattered! My website is now 100% valid with no errors. Thanks guys! Rep each.
Create an account or sign in to comment