WEB
Generally web has three Layers Structural Layer, Presentation Layer and Behavioural Layer and they are designed by HTML,CSS and Java Script respectively .
WEB BROWSER
Web browser can show text, audio, video, animation and more. It is the responsibility of a web browser to interpret text and commands contained in the web page.Earlier the web browsers were text-based while now a days graphical-based or voice-based web browsers are also available.
USER INTERFACE
User Interface is the top bar in the browser, where control lies. It includes space where we type the URL, have back/forward buttons, space where tabs and setting options are.
BROWSER ENGINE
When HTML document loaded in the browser the HTML parser will create DOM and CSS parser will create CSSOM . HTML parser and CSS parser are part of Browser Engine.
RENDERING ENGINE
Once the browser engine has computed styles, it’s time to put it to use! The DOM and the computed styles are fed into a layout engine that takes into account the size of the window being drawn into. The rendering engine uses various algorithms to take each element and draw a box that will hold its content and take into account all the styles applied to it.
When layout is complete, it’s time to turn the blueprint of the page into the part you see. This process is known as painting, and it is the final combination of all the previous steps. Every box that was defined by layout gets drawn, full of the content from the DOM and with styles from the CSS. The user now sees the page, reconstituted from the code that defines it.
In modern web applications, the structure of the document itself is frequently changed by scripts. This can require the entire rendering process to start more-or-less from scratch, with HTML being parsed into DOM, style calculation, reflow, and paint.
NETWORKING
Networking is fetching resources and handling everything related to the internetand it wi;l do the following jobs
- The moment when we type the first letter, it will starts looking into bookmarks and history and give you meaningful suggestions.
- Parse URL and retrieve protocol.
- Conversion of NON-ASCII happens, using encoding to convert the URL.
- Browser checks HSTS (HTTP Strict Transport Security) list, append HTTPS if URL found in the list, otherwise send via HTTP.
- DNS Lookup: whom to lookup, 1. Browser DNS cache 2. OS cache 3. Call DNS server which local router/ ISP router.
- Get the IP address of DNS(domain name server) server/default gateway using ARP (Address Resolution Protocol).
- Opens port 53 and raises a UDP( User Datagram Protocol ) to DNS server (TCP/UDP depends on response size), If it is the default gateway it will recursively follow this procedure.
- If DNS says that it does not know about an address. Browser searches it in the default search engine and shows up top 10 results.
- Otherwise, once it has the IP address of destination server, it starts HTTP (port 80)/ HTTPS(port 443) request and it will request for TCP socket connection.
- Request reaches to Network layer for filling TCP header, Transport layer for filling IP header, data link layer for Ethernet frame header.
- Packet flows in the network in digital or cellular.
- 3-way handshake between server and client and data is sent to the client on request.
- Transport layer security
handshake happens and finally, the Browser gets the data in chunks.
UI BACKENDUI back end is used for drawing basic widgets like combo boxes and windows. This backend exposes a generic interface that is not platform specific. It underneath uses operating system user interface methods.



Comments
Post a Comment