🙋🔍What happens when you type a URL ? 🌐💻
Published: 2024-01-01 17:55:07

Ever wondered what happens when you type a website name in the browser? 🤔🌐 It's like telling the internet, 'Hey, take me to the cool stuff!' and a bunch of tech wizards make the magic happen behind the scenes. ✨💻 Get ready for a fun journey into the land of web-wonders! 🚀👾

Here's a simple flow diagram of what happens when you type a URL in the browser:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gynxf2c1lqn92t4tpu88.png)




Here's a Detailed flow diagram

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fcpezsm7p9t9the05q74.png)


## 
**Certainly! Let's break down each step:**
**Resolve Domain Name**
User enters URL (👀): The user triggers the process by entering a URL in the browser, expressing the desire to access a particular website.

Browser (💾): The browser, acting as the user's gateway to the internet, first checks its cache (💾) to see if it already has information about the requested domain.

Cache (🕵‍): If the browser doesn't find the domain in its cache, it turns to the DNS Resolver (🕵‍) for assistance in locating the IP address.

DNS Resolver (🌳): The DNS Resolver (🌳) plays the role of an internet detective. It queries the root name server to initiate the process of unraveling the IP address associated with the requested domain.

Root Name Server (🏛️): The Root Name Server (🏛️) directs the DNS Resolver to the Top-Level Domain (TLD) Name Server, providing a starting point for narrowing down the search.

TLD Name Server (🏛️): The TLD Name Server further guides the DNS Resolver, redirecting it to the Authoritative Name Server that holds information about the specific domain.

Authoritative Name Server (🛰️): The Authoritative Name Server (🛰️) holds the key to the kingdom, providing the DNS Resolver with the actual IP address associated with the domain.

DNS Resolver (🛰️): The DNS Resolver takes this newfound knowledge and joyfully delivers the IP address back to the browser, completing the domain resolution process.

**Initiate Request**
Browser initiates TCP Connection (🤝): Now armed with the IP address, the browser establishes a hearty handshake (🤝) through a TCP connection with the server housing the requested website.

Browser sends HTTP Request (📨):

Method: GET

URL: example.com

Host: example.com

Other headers: Alongside the basic request, additional headers convey extra information to the server.

**Handle Response**
Server receives HTTP Request (📥): The server, receiving the browser's heartfelt request, prepares to process the incoming HTTP request.

Server generates HTTP Response (📤):

Status Code: 200 OK

Content Type: HTML

Other headers: The server constructs a detailed response package, including status information, content type, and other relevant headers.

Body of the response (HTML code): Within this package lies the treasure - the HTML code that constitutes the content of the requested webpage.

**After Response**
Browser receives HTTP Response (📥): The browser, eager and attentive, welcomes the response from the server.

Browser parses HTML code and renders the web page (🎨): The HTML content undergoes a transformation as the browser interprets and renders it into a visually appealing web page (🎨) for the user to explore.

This detailed breakdown encapsulates the journey from entering a URL to experiencing the rendered web page. If you have specific aspects you'd like to explore further or if there's anything specific you'd like to add, feel free to let me know!

**Conclusion**:
So, there you have it, the secret sauce behind typing a website into your browser! It's like sending a little message to the internet fairies, who work their magic to bring you the coolest stuff. Remember, every time you hit enter, you're unleashing a digital adventure. Happy browsing, internet explorer! 🌐✨

Call to Action: If this web-journey intrigued you, don't forget to hit that like button and share your thoughts in the comments below. 🤗👍 Your support keeps the digital magic alive! follow for more fun tech tales and become part of our internet explorer squad. Let's ride the web waves together! 🚀🌊 #WebAdventure #TechMagic #LikeCommentSubscribe