well. let's take this really really slowly.
you open your browser and type in a URL, for example, https://www.iamhungry.com
the browser doesn't know where www.iamhungry.com lives, so it needs to look it up.
to do that, it asks a DNS (domain name server) (essentially it's like an internet phonebook) to translate the human-readable URL into something computers understand: an IP address.
the DNS server responds with an IP address, like 172.217.3.110 (which points to Google's server, for example)
now that the browser knows the server’s address (the IP address), it sends a request to the server saying, "please give me the homepage of www.iamhungry.com."
this request is made using HTTP, (hypertext transfer protocol) a set of rules that allows browsers and servers to talk to each other. the browser is basically asking the sever that they want a specific page.
the server receives the request and knows which page to send back (usually the index.html page, which is the homepage)
it sends an HTTP response back to your browser. this response contains the website’s HTML code (which describes the structure of the page, like text, headings, and links)
the browser receives the HTML code from the server and starts reading it.
it then requests any additional files (like CSS, JavaScript, or images) mentioned in the HTML.