World Wide Web (WWW)

The World Wide Web (WWW or Web) is an information system where documents and other web resources are identified by URLs (Uniform Resource Locators), interlinked by hypertext links, and accessible via the Internet.

The World Wide Web is a vast collection of interconnected documents and resources, such as text, images, videos, and other multimedia, that are accessed through web browsers. It was invented by Tim Berners-Lee in 1989 while working at CERN. The core components of the web include:

The web operates on a client-server model, where web browsers (clients) request resources from web servers using HTTP/HTTPS, and the servers respond with the requested resources.

Example (JavaScript):

Accessing a web resource using JavaScript and the Fetch API:

fetch('https://api.example.com/data')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

In this example: