Introduction
Imagine you want to read an article online, but you need a way to get that article from a website to your screen. Web browsers solve this by sending requests to websites and then showing you the pages they send back.
Imagine you want to read a book from a library. You tell the librarian the book's title (URL). The librarian goes to find the book (server processes request), then brings it back to you (server sends response). You then open the book and read it (browser displays page).
┌───────────────┐ HTTP Request ┌───────────────┐
│ Browser │─────────────────────────▶│ Server │
│ (Your device) │ │ (Website host)│
└───────────────┘ └───────────────┘
▲ │
│ HTTP Response │
└─────────────────────────────────────────┘
Browser displays the page on screen