How it works · 14 of 36 Foundation

What are the parts of a web address (URL)?

How to reach a page, and which one

Parts of a URL: A URL says how to reach something (https), where (the name and port) and which page (the path, and any ?query).

Loading the animation…

Say it like this A URL says how to talk (https), to which server (the name and port), which page (the path and any ?query), and, after #, which spot on that page.

Under the hood — for builders
Real case: the trick address in the standard itself
The rulebook for web addresses warns about this exact example, word for word. Most people read the host as cnn.example.com:
The official names of the parts
The standard's own example, split the way the standard splits it:
What gets sent, and what doesn't
When you open the card's address, only some parts travel to the server. The fragment is cut off first:
Port
Usually hidden. With no port written, https means 443 and http means 80.
Query
Name=value pairs after ?, joined by &. Search boxes put your words here, so they show up in history and logs.
Measure it
Paste a link into a note before opening it, and mark the scheme, host, path and query by hand.
Watch out
Never type passwords into a page reached from a link you haven't read right to left: check the host after any @.
Sources
RFC 3986, URI Generic Syntax (sections 3, 3.5, 7.6). RFC 9110, HTTP Semantics. Read 28 Nov 2026.

What happens in the URL parts animation, step by step?

  1. A web address, a URL, looks like one long string. It's really six parts, each with one job.
  2. Split it up and each part becomes its job: how to talk, which server, which door, which page, extra details and a spot on the page.
  3. Your turn: tap each part to see what it does.
  4. Press Enter: the first three parts connect to the server, the path and query are sent to it, and the # part never leaves your browser.
  5. Read the host carefully. In https://ashasbakery.in@203.0.113.9/login, everything before the @ is just a user name: the real server is 203.0.113.9.
  6. Protocol, name, port, path: how to reach it, where, and which page. Next: what do a client and a server do?

What everyday example explains URL parts?

A full postal address down to the flat and the person.

Why should a team care about URL parts?

Reading a URL tells you whether a link is safe and what it will open.