Questions tagged [fragment-identifier]

The fragment-identifier is the part of the URI/URL following the hash symbol. In the case of `http://mysite.com/page/#/one` then `/one` would be the fragment-identifier.

The fragment-identifier is the part of the URI/URL following the hash symbol. In the case of http://mysite.com/page/#/one then /one would be the fragment-identifier.

In URIs a hashmark # introduces the optional fragment near the end of the URL. The generic RFC 3986 syntax for URIs also allows an optional query part introduced by a question mark ?. In URIs with a query and a fragment, the fragment follows the query. Query parts depend on the URI scheme and are evaluated by the server — e.g., http: supports queries unlike ftp:. Fragments depend on the document MIME type and are evaluated by the client (Web browser). Clients are not supposed to send URI-fragments to servers when they retrieve a document, and without help from a local application (see below) fragments do not participate in HTTP redirections.

A URI ending with # is permitted by the generic syntax and could be considered as a kind of empty fragment. In MIME document types such as text/html or any XML type, empty identifiers to match this syntactically legal construct are not permitted. Web browsers typically display the top of the document for an empty fragment.

The fragment identifier functions differently than the rest of the URI: namely, its processing is exclusively client-side with no participation from the web server — of course the server typically helps to determine the MIME type, and the MIME type determines the processing of fragments. When an agent (such as a Web browser) requests a web resource from a Web server, the agent sends the URI to the server, but does not send the fragment. Instead, the agent waits for the server to send the resource, and then the agent processes the resource according to the document type and fragment value.

For more info see wiki.

243 questions
-2
votes
1 answer

how to target href to multiple divs?

I used the method shown in How to target the href to div to target the href to div. It worked. But I need to add another level. HTML
-3
votes
1 answer

Why are identically implemented HTML anchors/IDs working in one case but not the other?

I have created a website which allows the user to jump to a chapter from the Table of Contents. It works in one book "Huck Finn" but not the other "Rouging It." The code seems exactly the same to me. And, in fact, it works in "Roughing It" in the…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
-3
votes
1 answer

How to scrape a url containing # using python scrapy

I am using python scrapy to scrape a website. The webpage is of the form http://www.cuponation.in/myntra-coupons#voucher-13537 it contains '#' in it. While scraping this webpage as start_url it ignores the part after #. Is there a way i can scrape…
user2129794
  • 2,388
  • 8
  • 33
  • 51
1 2 3
16
17