Wirebook

Wirebook › Glossary › Fragment

What is a fragment?

In one sentence: The part of a URL after #. It stays in your browser and is never sent to the server.

A little more

The fragment is everything after the # in a web address. Browsers use it to jump to a part of a page (like a heading), and web apps use it to remember state. Crucially, the browser never sends the fragment to the server.

That makes it a good hiding place for a secret key: a link can carry the key to your friend, while the server that delivers the page never sees it.

See it in action

  1. 2Anatomy of a web addressPaste any web address and see it taken apart, colour by colour: scheme, host, port, path, query and the fragment that never reaches the server.5 min · interactive

Related words

← All 146 words