Introduction: What is the Web?
- The Web is a service built on top of the Internet.
- It allows devices to send, receive, and display data like websites, videos, and files.
- The web mainly works using the Client-Server model of communication.
🧠 Understanding the Client-Server Model
🔁 1. What is a Client?
A client is anything that makes a request for data:
- Client Devices: Laptops, smartphones, tablets.
- Client Programs: Browsers (Chrome, Firefox), chat apps, etc.
🗃 2. What is a Server?
A server is a program (not a physical machine by definition) that:
- Listens for client requests.
- Responds with data (web pages, files, databases, etc.).
- Runs 24/7 and handles multiple clients.
Examples:
- Web Server (e.g., Apache)
- Database Server (e.g., MySQL)
🧱 3. Client-Server Architecture