This is a guide on how this HTML-Renderer works and how you could theoretically make your own. There are a lot of great write-ups on how browsers work theoretically. So, if you like those, visit this list of awesome browser stuff
But in this guide, I will try to explain the more practical side of things, also showing some code. A bit like Web Browser Engineering by Pavel Panchekha & Chris Harrelson