Jump to content

URI fragment

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 790 (talk | contribs) at 12:35, 8 April 2005. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A fragment identifier is added to a URI (and thus to a URL) for locally adressing parts of a document. The interpretation of the fragment depends on the type of ressource and the application that parses it. It is separeted from the URI with a single character, usually an hash #

Examples:

  • in HTML applications, www.foobar.org/schmoo.html#tag1 will refer to the html-element containing the "anchor"-attribute name="tag1"
  • in XML applications, www.foobar.org/schmoo.xml#xpointer(//Rube) should employ an XPointer, returning all XML-elements named "Rube" from the file "schmoo.xml" on foobar.org

see also

World Wide Web Consortium