Welcome to the final course of this learning path! Before you complete your journey, let's learn how the web works behind the scenes. Every time you visit a website, two main players work together to deliver that webpage to you.
Engagement Message
Who do you think those two players are?
Think of the web like a restaurant. You're the customer who wants to order food, and there's a kitchen that prepares your meal.
This simple analogy will help us understand the two main players in web communication.
Engagement Message
Can you guess which part of the web each represents?
In our restaurant analogy, you (the customer) represent the client. In the web world, your browser is the client.
The client is the one that makes requests—just like you request food from a restaurant menu.
Engagement Message
What kind of request do you think a browser might make?
The kitchen represents the server. A server is a powerful computer that stores websites and responds to requests.
Just like a kitchen receives your order and prepares food, a server receives your browser's request and prepares the webpage.
Engagement Message
In one sentence, how is a server like the kitchen?
Here's how it works: When you type google.com
, your browser (the client) sends a request to Google's server asking for their homepage.
The server then responds by sending back all the code needed to display Google's page in your browser.
This back-and-forth is called the request-response cycle.
Engagement Message
With me so far?
