|
Posted by Hymer on March 15, 2007, 9:31 pm
Please log in for more thread options
>
>> 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 "&amp;".
OK Jukka, you have taken me to task. As you can see, I don't know html very
well. Of course, that's why I asked the question, albeit the wrong one.
While I don't know the correct coding, the user will probably know even
less. I would like to get the correct coding to offer that person to make it
easy to copy/paste.
Can you suggest the correct coding for this purpose?
Thanks,
Bob
P.S. I did not check mysite. Sorry. I was just trying to not publicize my
URL inappropriately.
|