Question: how html rendering is done?
Answer: Process HTML markup and build the DOM tree. Process CSS markup and build the CSSOM tree. Combine the DOM and CSSOM into a render tree. Run layout on the render tree to compute geometry of each node. Paint the individual nodes to the screen.