Advertisements

Jeff Thies wrote:
> I have a series of links that reference anchors in the same page. Is it
> legal to have spaces in the names?

Bad Style!
Imagine someone who wants to bookmark this reference. Propably he won't
experience problems with it (depends on the browser) but all spaces will be
converted to %20. Never use spaces in identifier, names or references. Try
to convert them to underscores if you need it.
> Such things would never work in the url, but work here.

You cannot say this in general. Sometimes spaces will be converted to %20
sometimes not. I am not sure if it depends on the browser or server, but it
depends.

Advertisements

Eric Biller wrote:
> Jeff Thies wrote:
>
>
>>I have a series of links that reference anchors in the same page. Is it
>>legal to have spaces in the names?
>
>
> Bad Style!

Illegal syntax or just bad style?

> Imagine someone who wants to bookmark this reference. Propably he won't
> experience problems with it (depends on the browser) but all spaces will be
> converted to %20.

It's a site map. Nobody is going to bookmark an anchor in a sitemap!

Jeff

Never use spaces in identifier, names or references. Try
> to convert them to underscores if you need it.
>
>
>>Such things would never work in the url, but work here.
>
>
> You cannot say this in general. Sometimes spaces will be converted to %20
> sometimes not. I am not sure if it depends on the browser or server, but it
> depends.
>
> greetz
> Eric Biller
>

On Fri, 31 Dec 2004 15:24:52 GMT, Jeff Thies wrote:
> Eric Biller wrote:
>> Imagine someone who wants to bookmark this reference. Propably he won't
>> experience problems with it (depends on the browser) but all spaces will be
>> converted to %20.
>
> It's a site map. Nobody is going to bookmark an anchor in a sitemap!

If it's a big site, and someone is interested in a certain subset of it,
they might well bookmark the anchor to get them back to that area very
quickly. I've never done it myself, but "never say nobody".

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!