Validation Confusion of href

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • misterkeitel
    New Member
    • Nov 2008
    • 3

    Validation Confusion of href

    Hi! I've really tried to seach and see if this questions has been asked and answered before. But I was unable to find it. Probably because I was not asking it in the right way.

    I'm going to try realy hard to pose my question without sounding like a crazy persons. Thanks.

    I'm making my first website with XHTML and CSS. It's going okay. However, I'm having and issue with the Validator. In my site all the pages have lots of hyperlinks to other sites, so therefore my links will have the address to the other sites' URL - and sometimes those addresses are long and complex and a little crazy.

    The Validator is looking at the addresse in the href's and crying foul because it sees an ampersand "&" and without a semicolon ";" and thinks I'm trying to write some non-semantic code. Or it sees an equals sign "=" in the address and calls that a Warning too.

    So, here is my question. Do I ignore the Validator or do I try to change something? I don't see how I can change the web address in the hyperlinks. If I do that, the browser will never find those other websites.

    Is there something I can do to fix this?
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    You can correct the problem by using '&' in lieu of just '&' and the urls will still work and the code will validate.

    --Kevin

    Comment

    • misterkeitel
      New Member
      • Nov 2008
      • 3

      #3
      Hey, thanks you were right. I would have never belived that you could replace the & ampersand with ath & in the URL and it would still work.

      Can I ask another questions? I have created a logo using CSS. It uses a repeating image. Now, this logo works just fine locally on my computer, but when I put it up on the server I can't see the repeating image.

      the code should work. I've used it before with other pages that I've put up on the net. What do you think I might be doing wrong? Thanks.

      #logo { color: #ff0000;
      font-size: 4em;
      font-weight: bold;
      border-bottom: 5px solid #000000;
      height: 84px;
      background-image: url(image/mars_landscape. jpg);
      padding-left: 20px;
      }

      Comment

      • David Laakso
        Recognized Expert Contributor
        • Aug 2008
        • 397

        #4
        Is the image on the server? And since you have what I assume is a public server, could you share your uri? This might provide a "real answer." Without it, we all get to waste each others time, playing a little game of "pin the tail on the donkey." Fun you. A bore for me.

        Comment

        • misterkeitel
          New Member
          • Nov 2008
          • 3

          #5
          Here you go. And again thanks for taking the time to look at this.

          As you'll see in the logo area there appears the words "Mars Explorer" and behind it should be a repeating image of the Martain Landscape but all there is is grey area.

          http://learn.carvingco de.com/cis136/david.evans2185/

          I am guessing that the image "mars_landscape .jpg" is up on the server. I used my Dreamweaver to "post" the site and I just looked at the "remote" file and it seems to show the jpeg up on the the remote "image" file.

          If you can give me any insights, that would be great. Thanks.

          Comment

          • David Laakso
            Recognized Expert Contributor
            • Aug 2008
            • 397

            #6
            I assume you've corrected whatever the problem was? The header image appears on this end in the latest versions of Mac Opera, FF, SeaMonkey, Camino, and Safari; and in XP IE/7 and IE/6.

            Comment

            Working...