The Internet is a global network of networks while the Web, also referred to formally as World Wide Web (www) is a collection of information that is accessed via the Internet.
Web applications use HTTP protocol which is a layer over TCP protocol. Whereas internet applications can use either TCP or UDP protocol.
In 1989, while working at CERN, Tim Berners-Lee wrote a proposal to build a hypertext system over the internet. Initially called the Mesh, it was later renamed the World Wide Web during its implementation in 1990.
Built over the existing TCP and IP protocols, the web consisted of 4 building blocks:
A web server is a software and hardware that serves web content through HTTP, and some other protocols that respond to request from clients made on the World Wide Web.. It is the foundation of the internet and any website out there must be sitting and hosted on a web server.
The web server is used to:
A web server can serve static or dynamic content. To deliver dynamic content, most web servers support server‑side scripting languages to encode business logic into the communication. Commonly supported languages include Active Server Pages (ASP), Javascript, PHP, Python, and Ruby.