SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    runat="server" Golgotha's Avatar
    Join Date
    Nov 2001
    Location
    Colorado
    Posts
    2,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    w3c.org Validation

    what doesn't it like about this?
    I don't get the 5 complaints it has?

    http://www.search-this.com/search_en.../template.aspx

    http://validator.w3.org/check?uri=ht...aspx&verbose=0

  2. #2
    SitePoint Evangelist ClevaTreva's Avatar
    Join Date
    Jan 2004
    Location
    Chipping Campden, UK
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    It's because you defined it as HTML4.01 which doesn't allow the xhtml closing style you use in the meta tags ( />). That means it has closed the head prematurely, and that problem cascades onwards. I suggest you change the doctype to xhtml 1.0 transitional.

    However, if you do that, you've got a bit of woork to do to convert all the other tags that don't conform.

    Also, the meta tag with content="C#" would fail, as I don't think content is allowed in xhtml.





    Trevor
    "Good artists copy, great artists steal."
    - Pablo Picasso
    The image of ClevaTreva is drawn by Rhys, and is a GOOD likeness

  3. #3
    runat="server" Golgotha's Avatar
    Join Date
    Nov 2001
    Location
    Colorado
    Posts
    2,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, just need to fix this:
    Line 90, column 32: there is no attribute "onClick"

    it doesn't like the onClick attribute here, how do you fix that?

    <a href="#" onClick="isHighlighted = changeHighlight(isHighlighted)">

  4. #4
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try onclick

    If you turn on "Verbose Output" you do get some more details about the error it is reporting:

    How to fix: check the spelling and case of the element and attribute, (Remeber XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature


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
  •