How do any web browser open so many tabs along with keeping each tab data seperate

Ever thought when http request is made on port 80 then how is chrome able to open so many tabs and not mess their data.

Photo by Obi Onyeador on Unsplash

This is a question I stumbled upon and decided to do a bot research on it.

It happens like this:

Suppose you want to open www.example.com. Now the server is listening on port 80 but Chrome is not necessarily sending request on port 80. It can use any port, suppose port 1160.

So, chrome:1160 --->www.example.com:80

Again suppose you want to open www.example2.com

This time chrome will use some other unused port, suppose port 1164

So, chrome:1160 --->www.example2.com:80

So it cam be seen the number of tabs one can open in the browser depends on the number of available port and obviously on the amount of ram available.