SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Mar 2007
    Location
    London
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Validation problem

    Search box problem.
    I have my own searchbox, but it has trouble validating...any help??


    HTML Code:
    <!-- SiteSearch Google -->
     <form method="get"     action="http://www.google.com/search">
    <div id="search">
     <label for="q">Search:</lable>
     <input id="q" name="q" size="20" maxlength="225"         value=""type="text">
     <input name="domains"     value="http://www.finneworks-enterprices.co.uk/"     type="hidden">
     <input name="sitesearch"     value="http://www.finneworks-enterprices.co.uk/" checked="checked" id="mysite" type="radio">
    <label for="mysite">Just this site</label>
    <input name="sitesearch" value="" id="www" type="radio">
    <label for="www">WWW</label>
    <input name="btnG" value="Go" type="submit">
    </div>
    </form>
    <!-- SiteSearch Google -->

    Here is the error report:

    HTML Code:
    Below are the results of attempting to parse this document with an SGML parser. 
    
    Error Line 49 column 30: end tag for element "LABLE" which is not open.
     <label for="q">Search:</lable>
    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem. 
    
    If this error occured in a script section of your document, you should probably read this FAQ entry. 
    
    ✉ 
    
    Error Line 53 column 19: document type does not allow element "LABEL" here.
    <label for="mysite">Just this site</label>
    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). 
    
    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). 
    
    ✉ 
    
    Error Line 55 column 16: document type does not allow element "LABEL" here.
    <label for="www">WWW</label>
    ✉ 
    
    Error Line 57 column 5: end tag for "LABEL" omitted, but its declaration does not permit this.
    </div>
    You forgot to close a tag, or 
    you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed. 
    The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag. 
    
    ✉ 
    
    Info Line 49 column 1: start tag was here.
     <label for="q">Search:</lable>
    Error Line 78 column 3: end tag for element "P" which is not open.
    </p>
    And I cant find that </p> tag they are talking about

    Im writing in HTML4.01 Transitional

    Thanx

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You've misspelled the first end tag for </label>.
    The rest of the errors follow from that, because there is no proper end tag for the first <label>.
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Member
    Join Date
    Mar 2007
    Location
    London
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    lmao

    Damn....i think I need a break

  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)
    LOL

    When you get validation errors, always look closely at the first one. The validator is easily thrown off its tracks and you can get tons of 'errors' that aren't really errors because the validator got lost.

    Fix the first error and revalidate, that's the best practice.
    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
  •