SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XML errors for w3 >_<

    Trying to validate markcomedia.couk (cant post full URL because under 10 posts) and it's giving my a couple of errors I don't understand, for one, it says there is an error on like 73 > 58 with UL tags not matching, are they not? and I dont understand how to solve the XML errors. Anyone are to enlighten me?

  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)
    The validator's error messages are fairly self-explanatory.
    required attribute "alt" not specified
    The alt attribute is required for the img element type. It should provide the text equivalent of the image. Omitting it is an error.

    n attribute value specification must be an attribute value literal unless SHORTTAG YES is specified
    In this case there seems to be two errors with the same attribute (border=0).
    First of all there's no space between the preceding attribute value and the attribute name (border). An attribute name must always be preceded by white space.
    Secondly, all attribute values in X(HT)ML must be enclosed in quotation marks.
    Insert a space before the attribute name and change it to border="0" (or better yet, use CSS to control presentation instead of deprecated presentational attributes).

    document type does not allow element "a" here
    Here you have a number of anchor elements missing the </a> end tags. That means you're trying to nest one link inside another, which is not allowed.

    end tag for "a" omitted, but OMITTAG NO was specified
    This error is a consequence of the previous one.

    XML Parsing Error: attributes construct error
    Again, you've omitted the required white space before an attribute name.

    The remaining error messages are the result of your invalid markup confusing the validator's parser.
    Birnam wood is come to Dunsinane

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,752
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    That error means that the <ul> isn't closed properly. You probably have a child within the <ul> that isn't closed.
    Edit:

    Tommy putu more effort into it. Shoulda refreshed
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  4. #4
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers I'll take a double look =) down to 36 now ;D

  5. #5
    SitePoint Evangelist
    Join Date
    Apr 2009
    Location
    South Carolina
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are getting close to validating.

    Near the bottom of your code you have:

    target="_blank"><img class="statcounter"
    src="http://c.statcounter.com/4841596/0/362077fe/1/"
    alt="blogspot visitor" ></a></div></noscript>

    The last part visitor" /></a>

    Closing that img tag may fix it.

  6. #6
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Lakitu
    What Doctype are you using?

  7. #7
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cooper.semantics View Post
    @Lakitu
    What Doctype are you using?
    XHTML 1.0 Transitional
    (But served as text/html, of course, so not really XHTML at all.)
    Birnam wood is come to Dunsinane

  8. #8
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  9. #9
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cooper.semantics View Post
    XHTML Transitional served as text/html is really agitating to see
    I've never understood the point of XHTML Transitional. Is there any browser that supports XHTML but not CSS?

    And XHTML as text/html is of course silly, but I'm so used to that now I can hardly be bothered to sigh.
    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
  •