How browser rendering works?

The entire browser rendering process happens in a few milliseconds, but it involves a lot of steps (Critical Rendering Path).