Render Flow - Role of CSS in web development
[Parse HTML] -> [Build DOM tree] -> [Parse CSS] -> [Build CSSOM tree] -> [Combine DOM + CSSOM] -> [Calculate styles] -> [Layout] -> [Paint] -> [Composite]
The browser first reads the HTML to build the page structure (DOM). Then it reads CSS to understand styling rules (CSSOM). It combines both to calculate how elements look and where they appear, then draws the page.