for N files it will take N times connections or N+1 times connections?
A web server will consist of different files, a file will contain different objects. When we open a new connection, we can access one of the files, but to fetch the objects inside the file we need new connections.
eg 1 file in a server has 10 objects, so we need one connection to establish a connection through port 80 and fetch that file, and then we need 10 extra connections to fetch the objects in the file. So a total of 11 connections are required.
For N files, it depends on the number of objects inside each file.
here for text we are not considering any extra connection right? it will be included in the connection to fetch the webpage? or it's vice versa?
Yes, we are not considering an extra connection for text because, if you have ever done web development you will see the text is contained inside the HTML file, but the images are actually stored inside the local directory or server, we just reference it in our HTML. That’s why we need a separate connection to fetch them.