SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist Sikwondo's Avatar
    Join Date
    Sep 2005
    Posts
    426
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why won't this code validate?

    Lost, validating a site and one line of code is coming up as an error and not a clue why

    Line of cide is 192 on this page: http://cmg.pelli.co.uk/index.php/bus...s-relocations/

    Code:
    <input name="submit" type="submit" value="Submit Form" />
    If you can help would be so grateful!

  2. #2

  3. #3
    SitePoint Wizard bronze trophy Black Max's Avatar
    Join Date
    Apr 2007
    Posts
    4,029
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    The code validates at the W3 checker but not at WDG:

    http://www.htmlhelp.com/cgi-bin/vali...F&warnings=yes

    Here's what I get there:

    Errors and Warnings
    Line 178, character 22:
    <label for="Time">Preferred Time<em>*</em></label>
    Error: reference to non-existent ID Time

  4. #4
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Currently:
    <label for="Time">Preferred Time<em>*</em></label>

    Change to:
    <label for="time">Preferred Time<em>*</em></label>

  5. #5
    SitePoint Evangelist Sikwondo's Avatar
    Join Date
    Sep 2005
    Posts
    426
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    THank you very much guys, apologies, late last night I put the code in <p> tags and it validated, meant to post here but was late and I forgot.

    But you have also cleared up the warning was getting so thanks very much for that


Bookmarks

Posting Permissions

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