SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,666
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    What does this mean...

    I'm trying to validate my page and dont undeerstand why a form cannot have a name?
    http://validator.w3.org/check?uri=ht...line&verbose=1
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    SitePoint Addict WillisTi's Avatar
    Join Date
    Sep 2005
    Location
    Bristol, ENG
    Posts
    338
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The "name" attribute has been deprecated in xhtml. The "id" attribute is the suggested replacement.

  3. #3
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,666
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Made some modifications and have no idea what to do about this error?
    http://validator.w3.org/check?uri=ht...line&verbose=1
    or any of the other errors.
    "Oh, and Jenkins--apparently your mother died this morning."

  4. #4
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A form element can only have block-level children in a Strict doctype. You need to wrap your a and img elements inside a block-level element, e.g., a div.

    I see you're trying to 'hide' your script code by enclosing it in SGML comments. Please note that this is an HTML-only practice which must not be used with XHTML. An XML parser may ignore any comments. The best thing would be to move your script code to an external file.
    Birnam wood is come to Dunsinane


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
  •