By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,727 Members | 1,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,727 IT Pros & Developers. It's quick & easy.

Validation Confusion of href

P: 3
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?
Nov 18 '08 #1
Share this Question
Share on Google+
5 Replies


eWish
Expert 100+
P: 971
You can correct the problem by using '&' in lieu of just '&' and the urls will still work and the code will validate.

--Kevin
Nov 19 '08 #2

P: 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;
}
Nov 19 '08 #3

Expert 100+
P: 397
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.
Nov 19 '08 #4

P: 3
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.carvingcode.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.
Nov 19 '08 #5

Expert 100+
P: 397
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.
Nov 20 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.