In the last post about Web Server's Role we understood the web server's role in communication between client and server. Now we will understand what Web Browser does in day to day activity while communicating.
- Send request.
- Web browser makes request to web server which are generally in terms of http://www.example.com, then the www.example.com is resolves by Domain Name System (DNS) address and then it uses the HTTP to establish connection to web server.
- Authenticate the server.
- If the communication between web browser and server uses HTTP Secure (HTTPS) then it uses certificate to authenticate the server and decrypt the future communication.
- Process the Response.
- Browser should respond appropriately to response of web server. In response of web server it intact the reference of images, videos in HTML or error redirection.
- Display HTML.
- Web browser uses HTML standards to determine how to display HTML webpages to the user.
- As HTML support the embedded objects, it have to display dozen of objects to render single webpage.
- Run Client Script.
- Client scripts like JavaScript should be supported by the web browser to enable interactive and responsive pages without reloading the page.