www.webdeveloper.com
Results 1 to 3 of 3

Thread: W3C Validation Error

  1. #1
    Join Date
    Nov 2005
    Location
    United States
    Posts
    12

    Question W3C Validation Error

    ***DISREGARD...I DISCOVERED THE PROBLEM (EXTRA 'IMG' ATTRIBUTE)***

    Hi All,

    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.

    Sam
    Last edited by WebFreedom; 12-03-2005 at 06:24 AM.

  2. #2
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    HTML Code:
    <img src="Image01.jpg" alt="%KEYWORD% Graphic">

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,277
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles