How would I validate these links in xhtml 1.0 transitional?

Discussion in 'HTML & Website Design' started by phantom, Oct 2, 2007.

  1. #1
    How would I validate these links in xhtml 1.0 transitional?

    <a href="http://www.stumbleupon.com/submit?url=http://virtualguitar.net/live/boot.php" title="Stumbleupon"><img src="imgs/su.jpg" alt="stumble image"  border="0"/>Stumble this</a>
    | <a href="http://del.icio.us/post?v=2&url=http://virtualguitar.net/live/boot.php"  title="Delicious"><img src="imgs/del.jpg" alt="del image" border="0"/>Add to Delicious</a>
    Code (markup):

    I know there must be a way any ideas?

    Thanks in advance...
     
    phantom, Oct 2, 2007 IP
  2. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #2
    no one knows?
     
    phantom, Oct 5, 2007 IP
  3. downloadthenet

    downloadthenet Active Member

    Messages:
    497
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Not sure I'm with ya, but what's the error. If it's border=0, put in style sheet.
     
    downloadthenet, Oct 5, 2007 IP
  4. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #4
    It is something to do with the ampersands.....Here is what is says:

    #  Warning  Line 102, Column 41: reference to external entity in attribute value.
    
    …href="http://del.icio.us/post?v=2&url=http://virtualguitar.net/live/index.php
    
    ✉
    
    This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&amp;'.
    # Error Line 102, Column 41: reference to entity "url" for which no system identifier could be generated.
    
    …href="http://del.icio.us/post?v=2&url=http://virtualguitar.net/live/index.php
    
    ✉
    
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
    # Info Line 102, Column 37: entity was defined here.
    
     <a href="http://del.icio.us/post?v=2&url=http://virtualguitar.net/live/index.ph
    
    
    Code (markup):
     
    phantom, Oct 5, 2007 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It's trying to validate php, which it can't. :)

    Our insurance page uses Perl and gets the same result. HTML may not have &'s floating around by themselves; they must be represented as &amp; or some other ascii or unicode version.

    Obviously you can't do that with these links. You'll have to ignore the errors so long as everything else validates.

    Your site will be googled normally or whatever and will work fine even with this validation "error" if that's what you're worried about.

    I know of no way to "hide" code links.

    Hope this helps.
     
    Stomme poes, Oct 5, 2007 IP
  6. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #6
    ok sounds good......thanks for helping
     
    phantom, Oct 5, 2007 IP
  7. downloadthenet

    downloadthenet Active Member

    Messages:
    497
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #7
    downloadthenet, Oct 5, 2007 IP
  8. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #8
    Ok I 'll try that thanks!
     
    phantom, Oct 5, 2007 IP