Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 10 of 10
  1. #1
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    Could anyone make this code (which has errors mostly in its URL) XHTML 1.1 compliant?

    Code:
    <p align="center" />
    <a href="http://ad.doubleclick.net/click%3Bh=v3|3196|f|38|%2a|m%3B10933618%3B0-0%3B0%3B10308001%3B1-468|60%3B6999088|7016984|1%3B%3B%7Esscs%3D%3fhttp://www.hypemakers.net/gera/go.php?v=e&adv=478&redir=http%3a%2f%2fwww.howbadru.com" /><img src="http://www.bondmovies.com/images/gerabanner.gif" border="0" alt="" /></a>
    </p>
    Thanks.
    BondMovies.com - "Nobody Does It Better."

  2.  

  3. #2
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    You see this part?
    Code:
    //www.hypemakers.net/gera/go.php?v=e&adv=478&redir=http%3a%2f%2fwww.howbadru.com
    You need to encode those ampersands
    Code:
    //www.hypemakers.net/gera/go.php?v=e&amp;adv=478&amp;redir=http%3a%2f%2fwww.howbadru.com
    Haven't tested it, but should do it.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  4. #3
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    yes... brak's right! whenever you have & in your url your need to encode them as &amp;
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  5. #4
    Member Juvenall's Avatar
    Join Date
    Sep 2004
    Location
    #!/usr/bin/Detroit
    Posts
    67
    Member #
    7716
    Also note that you're closing your <p> tag before you're even getting to that point:

    Code:
    <p align="center" />
    It should just be:
    Code:
    <p align="center">
    Juvenall Wilson_______[juvenall@gmail.com]_________________
    Forum Directory - ForumFox.com
    YaBB Project Admin/Former allmusic.com designer

  6. #5
    Member drewrockshard's Avatar
    Join Date
    Feb 2004
    Location
    Garland (Dallas), Texas
    Posts
    45
    Member #
    4946
    actually Juvenall, you are right...

    but as the w3c states, a "well-formed" document must be close like this:

    HTML Code:
    <p align="center"><!-- paragraph content --></p>
    like i said, Juvenall is correct, but w3c can be anal, so the "well-formed" version is above.
    Thanks,
    Drew

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Drew, you're saying the exact same thing Juvenall said.

  8. #7
    Member drewrockshard's Avatar
    Join Date
    Feb 2004
    Location
    Garland (Dallas), Texas
    Posts
    45
    Member #
    4946
    Quote Originally Posted by transio
    Drew, you're saying the exact same thing Juvenall said.
    actually i go into a little more detail on why and how.
    Thanks,
    Drew

  9. #8
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Quote Originally Posted by drewrockshard
    actually i go into a little more detail on why and how.
    Actually, your explanation is more ambiguous and less correct. w3c specifies that a paragraph element must be closed, as any element, but it doesn't specify that it has to contain a text node content, like your post. In fact, the <p /> is a perfectly valid empty paragraph element by w3c standards. The error in the code above is the floating close paragraph - </p> - subsequent to the already closed paragraph (at least, that's how a browser would parse it). In order to contain the text node within the element, therefore, the element should not be closed prior to the text node.

    It's like this:
    Code:
    <p />
    This is a floating text node.
    This is a perfectly valid paragraph, but doesn't contain a text node. It could be useful if you want to create a dynamic text area, but not otherwise.

    Code:
    <p>This is a text node.</p>
    This is a paragraph containing a text node.

    Code:
    <p /> <!-- this is a closed paragraph -->
    This is a floating text node.
    </p>  <!--  this is an invalid close paragraph -->
    This paragraph is closed prior to the text node, and therefore is being closed twice.

  10. #9
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    138 times
    Steve, you know too much for your own damn good.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  11. #10
    Senior Member Trico's Avatar
    Join Date
    Feb 2004
    Location
    Nottingham, UK
    Posts
    894
    Member #
    5081
    ...was going to say 'someone has too much free time on their hands' earlier, especially when they go digging up recently burried threads.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:09 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com