Website Hosting

What exactly is a web hosting server or how does world-wide-web function?

What exactly is a web hosting server or how does world-wide-web function? Receiving a general belief about a website web server is a good idea before heading on the web.