Working of Browser>>

what is a browser?
a browser is a software application that fetches code from internet , understand the code and convert into a human readable page , on which you and me can interact
>>browser example >
google chrome
microsoft Edge
mozilla firefox
Main parts of a browser.
User interface
browser engine (Ex chrome have v8 engine that turn programming language into human readable language)
rendering engine
networking
JavaScript Engine
data storage(Memory management)
Browser Engine vs Rendering Engine
Browser Engine>>
connects ui and rendering engine
control system and navigations
manages high level logics
Rendering Engines>>
Reads HTML
Reads CSS
Build page layout
draw pixels
Networking: how a browser fetches HTML, CSS, JS
Browser asks DNS → “What is the IP?”
Connects to server
Sends HTTP request
Server responds with:
HTML
CSS
JS
Browser downloads everything
HTML parsing and DOM creation
Browser reads CSS and build CSS Object Model.
so it store everything in tree format
How DOM and CSSOM come together
DOM + CSSOM
To create: render tree
Render Tree = What actually needs to appear on screen.
It ignores:
Hidden elements
Meta tags
Script tags





