how the web works Flashcards
URL
uniform Resource locator
Resources
web pages images Video files fonts etc
WHen you enter the URL and hit ENTER
client - the browser which has actually hit the URL
server - where our website resides
This request which goes from client to server is thought http protocol
hyper text transfer protocol
Its a protocol which client and server use to talk to each other
HTTPs - HTTP with encryption
HTTP request example
GET index.html page with HTTP protocol 1.1
HOST: www.codewithmosh.com
Accept-Language: en-US
HTTP response example
HTTP 1.1 200 ok
Date : 1 jan 2021
Content type : text/html
…
…
What does browser do after getting the response
It forms Document Object MOdel or DOM
This model represents the elements of an HTML page
Next Step
Browser checks for external resources required
and makes another api calls to get the resources
these request is sent in parallel
Rendering
once all the resources we recieve, browser renders the page which means it displays it