Here is an over the top explanation you may never fully understand…

How Browsers Work