Ampersign

  • Thread starter Thread starter Dennis Allen
  • Start date Start date
D

Dennis Allen

Hi. I use FrontPage 2000 v4.0.2.3821. I have a html page with a
section of hyperlinks, like:

<a
href="http://www.stargazing.net/mas/index.htm?lat=43.06253&lon=-86.23575&loc=Grand Haven Boardwalk"
target="_top">Grand Haven Boardwalk</a><br>
Now http://validator.w3.org/ will reject this line, because every &
should be &amp;. Ok, I change them to &amp;. But, take another look at
the page and almost every &amp; turns back to &. What's the deal? Even
if I edit the page with notepad, they still turn back. How's that
possible?
 
Paste the link into the page in HTML/Code View. In most cases it does matter, however some server
based application require that the actual & is used and not &amp;.

In this case I would suggest you disregard the W3C Validator for these links, as the link may not
work for all users if changed. What the W3C Validator should be complaining about is the spaces in
the hyperlink (%20).

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Thomas A. Rowe said:
Paste the link into the page in HTML/Code View. In most cases it does
matter, however some server based application require that the actual
& is used and not &amp;.

HTML/Code View? I've tried to edit these hyperlinks in the FP HTML tab.
Tried the FP normal tab, edit hyperlink. Tried to open the file with
the FP editor and FP open with notepad. After the file is saved, most,
but not all, amp; disappears.
 
Then just leave the link as is, and they will work whereas if you change them to &amp; they may not
work for everyone.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
David Baxter said:
The validator is wrong. Ignore it and leave those lines the way they
are.

Then I would have to remove the DOCTYPE header.

As a quick and dirty fix, I changed the hyperlinks to JavaScript
document.write() code. Then I could replace & with &amp; without FP
reversing me. Of course for document.write(). I had to change all / to
\/, but at least the validator works...Dennis
 
Bo, you would NOT have to remove the DOCTYPE declaration. All you would
have to do is stop worrying about the W3C validation "error" which isn't
an error at all.
 
That should have read "No", not "Bo"... unless of course your name is Bo
and you are reading this, in which case, yes, I was talking specifically
to you...
 
Back
Top