Scripsit Hymer:
I am trying to create the html that someone would copy and paste to
create a link to our site.
If you don't know that, and you don't know how to check authoritative
specifications on such matters, is your code really worth copying?
<p><p>< a href="http://www.mysite.com" Usability, User Interface
Design, & Ergonomics </a>
- Internet Resources & Consulting by Usernomics.</p>
</p>
This raises many questions. Why do you use paragraph markup for something
that is not a paragraph, or even a complete sentence? Why should people who
copy the code use paragraph markup? Why the leading and trailing spaces in
the link text? (The latter probably has an impact on rendering.) Why do you
use the ASCII hyphen-minus character and not a dash character?
And why do you misrepresent the content of
http://www.mysite.com ? Did you
even check what it is?
This works fine except for the "&".
For some odd values of "work".
I want the "&" to show rather than "&".
Why? It might actually confuse people. It is true that it is generally
advisable (and obligatory in XHTML) to "escape" any occurrence of "&" as
data character, but a) your code isn't exemplary anyway, b) if people really
need your help to set up a simple link, they might get confused with
"&", and c) an "&" when followed by a space works well in browsers (and
by classic HTML rules).
But yes, you _can_ make "&" to show by writing e.g. "&amp;" or (if
that confuses _you_) alternatively "&".
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/