How does web work

The web has a different layers (Application, TCP, Internet, Session, Hardware, Presentation layers) all inter-connected. However, it essentially work through HTTP (Hypertext Transfer Protocol).

The Hypertext Transfer Protocol (HTTP) is an application layer protocol for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web, where hypertext documents include hyperlinks to other resources that the user can easily access, for example by a mouse click or by tapping the screen in a web browser.
(source)

The HTTP works in a request—response cycle in the client—server model.

Suggested blogs

Following are few nice descriptive articles on freecodecamp.org which will help you deeply understand how Web works. It’s a three part series.

Suggested videos

If you are visual learner and like to learn from videos, then following are few of the videos I found which will help you understanding how web works: