W3C Validation Error
***DISREGARD...I DISCOVERED THE PROBLEM (EXTRA 'IMG' ATTRIBUTE)***
I have some code (HTML 4.01 Transitional) that I've converted using HTML Tidy, and when I run it through the Validator, I get the following error:
'This page is not Valid HTML 4.01 Transitional!
Below are the results of attempting to parse this document with an SGML parser.
1. Error Line 19 column 31: there is no attribute "IMG".
<td><img src="Image01.jpg" img="" alt="%KEYWORD% Graphic">'
Prior to running HTML Tidy, this line appeared as follows:
'<img src="Image01.jpg" img alt="%KEYWORD% Graphic">'
Any ideas as to how I can resolve this problem?
Thanks in advance for any input provided.
Last edited by WebFreedom; 12-03-2005 at 06:24 AM.
<img src="Image01.jpg" alt="%KEYWORD% Graphic">
Tidy isn't a validating parser so it lets validity errors go through. And it's a little too chummy with XHTML.
Your IMG element has a "img" attribute above in both examples. The validator is telling you that it is invalid for IMG elements to have "img" attributes. Remove the "img" attribute.
And use 4.01 Strict. Transitional was only intended for limited use for a limited time. That time has long ageo passed.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)