What happens when you click on a URL

E Ma
2 min readNov 10, 2020

--

What type of click?

There are multiple ways to click an item including Single-click, Double-click, Right-click, Click and drag and Click twice. In this article, I am talking about Single-click.

Browser, Operating System and URL

When you click on a link, the browser and operating system will figure out where you’ve clicked. The URL(Uniform resource locator) has hidden information associated and indicates the next web page that you want view.

A URL consists of five parts — the scheme, subdomain, top-level domain, second-level domain, and subdirectory.

Example: https://blog.maeema.com/stories/parts-url

“https://” — Scheme, tells web server which protocol to use.

blog” — Subdomain, indicates which particular page of the website the browser should serve up.

“maeema” — Second level domain(SLD), the name of your website.

“.com” — Top level domain(TLD), specifies what type of entity your organization registers as on the internet.

“/stories/” — Subdirectory, helps people understand which particular section of a webpage they’re on.

DNS and TCP/IP

Domain Name System (DNS) maps URL to Internet Protocol (IP), and will get an IP address back for the site. The browser will opens a Transmission Control Protocol (TCP) connection to the web site over IP address. It asks to speak to Hypertext Transfer Protocol (HTTP) server, or HTTPS for secure connections.

HTTP/HTTPS

HTTP and HTTPS are rules that are defined to send and receive data packets over the web. The client sends a request message to an HTTP/HTTPS server, which hosts a website, the server then responds with the response message, along with completion status information such as HTTP/1.1 200 OK.

Which then provides the web page in Hyper Markup Language(HTML) that your browser renders.

--

--