If you are a we b developer, this information is for you.Many developers struggle with this kind of question during an interviews
The first thing that happens when you type any URL (e.g., google.com) is that your browser sends this URL to a DNS (Domain Name Server) to obtain the IP address of the website.
The DNS responds with the IP address linked to the URL (e.g., 142.250.66.110).
Now, your browser, which already has the IP address, starts searching for the web server hosting that specific website. It will definitely find it. Your browser then establishes a connection with the server at the obtained IP address using the Transmission Control Protocol (TCP).
Note: If this connection is not established, your browser will likely inform you that the website you are trying to access is not secure, and you should avoid sharing any sensitive information.
Your browser sends an HTTP (Hypertext Transfer Protocol) request to the server, specifying the desired resource (in this case, the Google homepage).
The Google server processes your request, retrieves the requested resources, and generates an HTML response.
The server sends the HTML response back to your browser.
Your browser receives the HTML response, interprets it, and renders the Google homepage, including its layout, content, and graphics.
This process happens rapidly, often in a matter of milliseconds!
If you have questions, drop it and I will answer you as fast as possible. By Levibliss
Source: hashnode.com