Professional Documents
Culture Documents
Step 1: Parsing The URL: Assignment 03 Title: World Wide Web (WWW) Message Format
Step 1: Parsing The URL: Assignment 03 Title: World Wide Web (WWW) Message Format
Url is a human readable alias for an IP [Internet Protocol]address. Its matching IP address is a
unique number sequence identifying a target server called Host.
The browser checks for the IP in its browser cache. If not found, it send a request to DNS.
The browser parses the URL to find: the •protocol type, •host, •port, and •request-URI path.
HTTP request is sent to the host & the machine waits to get a response back.
If the server fails to process or complete the request, it returns an 404 error message instead.
When external script, image, style sheets are parsed, new requests are made to the server.
When style sheets are parsed, each applicable styles gets attached to the matching node in the DOM
tree.
HTML5 adds an option to mark the script as asynchronous so these will be parsed &
executed by a different thread.
This way the page rendering is not halted.
DOM nodes are updated.
Note: Firefox innately blocks scripts rendering while stylesheets remain un-loaded.
In parallel to the DOM tree being constructed, the browser constructs a "render tree" of "frames" or
"render objects". This is the visual representation of the node elements.
The browser renders the page. The page is viewable & interact-able.