How the web works?

Richard
1 min readDec 13, 2023
Photo by Luca Bravo on Unsplash

The web works by following a series of steps when you view a webpage in a web browser. Here is a simplified view of what happens:

  1. When you type a web address into your browser, the browser goes to the DNS server to find the real address of the server that the website lives on.
  2. The browser sends an HTTP request message to the server, asking it to send a copy of the website to the client. This message, along with other data sent between the client and the server, is sent across your internet connection using TCP/IP.
  3. If the server approves the client’s request, it sends a “200 OK” message to the client, which means “Of course you can look at that website! Here it is.” Then, the server starts sending the website’s files to the browser as a series of small chunks called data packets.
  4. The browser assembles the small chunks into a complete web page and displays it to you.

Thanks for your time!

--

--