You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Previous episode Web servers: where a web page really is before it reaches your screen

What happens when you type a web address and press Enter

URL: the three parts of a web address, and why you type only two

A web address is a few letters, dots and slashes. Your browser finds three different answers in it. You only ever type two of them.

  1. 1 Your browser starts by adding what you never type: https:// at the front. Now the line is a full web address, a URL.added by your browserhttps://en.wikipedia.org/wiki/Moona URLYou skipped the start.I'll add it.

    Your browser starts by adding what you never type: https:// at the front. Now the line is a full web address, a URL.

  2. 2 Then it cuts the URL in three, at the :// and at the next slash. Each piece answers one question your browser has before it can ask for anything.httpshow totalk?en.wikipedia.orgwho toask?/wiki/Moonwhat toask for?

    Then it cuts the URL in three, at the :// and at the next slash. Each piece answers one question your browser has before it can ask for anything.

  3. 3 The first piece says how to talk: the rules both sides follow, and a locked conversation that nobody on the way can read. This piece is the scheme.httpsthe schemeyour phonethe server

    The first piece says how to talk: the rules both sides follow, and a locked conversation that nobody on the way can read. This piece is the scheme.

  4. 4 The second piece says who to ask. It is the domain name, and your browser writes it on the request.en.wikipedia.orgthe domain nameto: en.wikipedia.orgyour request

    The second piece says who to ask. It is the domain name, and your browser writes it on the request.

  5. 5 The third piece, the path, says what to ask for. Your browser copies it into the request, and the server decides which page goes with it./wiki/Moonthe path/wiki/Moonthe serverThat path? I knowwhich page it is.

    The third piece, the path, says what to ask for. Your browser copies it into the request, and the server decides which page goes with it.

  6. 6 The request is ready, and it stays in your phone. A domain name says who, never where, and the machines that carry a request across the internet only know where.to: en.wikipedia.orga machine on the wayA name? I onlywork with where.

    The request is ready, and it stays in your phone. A domain name says who, never where, and the machines that carry a request across the internet only know where.

  7. Quick check

    Which piece of shop.example.com/shoes/red tells your browser who to ask?Who to ask,in this one?shop.example.com/shoes/red

    Which piece of shop.example.com/shoes/red tells your browser who to ask?

    Show the answer

    shop.example.com, the domain name. /shoes/red is the path: what to ask that server for.

  8. Go further

    Two more pieces some web addresses carry, and the story of the two slashes.?q=moonqueryafter a "?": more to askfor, such as the wordsof a search#Orbitfragmentafter a "#": a place insidethe page. Your browserkeeps it and never sends it.//the two slashesTim Berners-Lee chosethem, and later wrote thatwe could do without them.

    Two more pieces some web addresses carry, and the story of the two slashes.

Next episode IP addresses: why the internet cannot use a website's name

Share this comic

More comics