What is a web server?

It is a computer program that is designed to serve or deliver the web pages to users in response to their queries or requests made by their computers or HTTP clients. In other words, it hosts websites on the internet. It uses HTTP (Hypertext Transfer Protocol) to serve pages to computers that are connected to it.