Thursday, March 22, 2012

meaning of "#" within a URL

Does anyone know the meaning of "#" within a URL ?

I have seen URLs where "#" is being used a separator of some kind, similar
to how "&" is used ...

Is this meaningful within HTTP itself ? Or has the website just been coded
to parse the "#" ?"John A Grandy" <johnagrandy-at-yahoo-dot-comwrote in message
news:OL4%23d6HoGHA.4172@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

Does anyone know the meaning of "#" within a URL ?


Yes - it means "open the document specified immediately before the hash
symbol and jump to the anchor tag with the name specified immediately after
the hash symbol".

Quote:

Originally Posted by

I have seen URLs where "#" is being used a separator of some kind, similar
to how "&" is used ...


Not really - in URLs, the ampersand is typically used to separate elements
in a QueryString.

Quote:

Originally Posted by

Is this meaningful within HTTP itself?


Not as such - HTTP simply transfers the entire HTML stream down to the
browser. It is the browser itself which then "jumps" to the named anchor
tag.

Quote:

Originally Posted by

Or has the website just been coded to parse the "#" ?


No - see the link below for further details:
http://www.w3.org/TR/html401/struct/links.html
hello John

maybe this can help

http://authors.aspalliance.com/aspx...s.aspx?pageno=6

0 comments:

Post a Comment