WWW Operation
World Wide Web (www) works on client-server architecture. Following steps give a basic understanding of the concepts involved
- User enters the URL (say, https://www.beginwebprogramming.com) of the web page in the address bar of the web browser.
- Then the browser requests the Domain Name Server (DNS). DNS translates domain name to IP address corresponding to www.beginwebprogramming.com.
- After receiving an IP address, the browser sends the request for the web page to the web server using HTTP protocol.
- The web server receives the HTTP request and searches for the requested web page. If found it returns the response as an HTML page to the web browser and closes the HTTP connection. If the requested web page is not found, server returns 404 – Page Not Found error message.
- Web browser receives the web page, It interprets the markup and displays the contents of the web page in the web browser as human readable format.