Results 1 to 3 of 3

Thread: W3C Validation Error

  1. #1
    Join Date
    Nov 2005
    United States

    Question W3C Validation Error


    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.

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

  2. #2
    Join Date
    Jun 2004
    HTML Code:
    <img src="Image01.jpg" alt="%KEYWORD% Graphic">
    Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
    (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.

  3. #3
    Join Date
    Nov 2002
    Baltimore, Maryland
    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.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

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