meaning of "#" within a URL

  • Thread starter Thread starter John A Grandy
  • Start date Start date
J

John A Grandy

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 "#" ?
 
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".
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.
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.
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top