How to Build an HTML Parser in C++

Adam Berg
Level Up Coding
Published in
5 min readNov 22, 2022

--

Originally published at https://devtails.xyz.

Intro

I’ve started building a web browser and initially set it up with a relatively hacky regex to “parse” the HTML. This had no regard for nested structures and very likely had all kinds of other issues.

The google search results for “build html parser in c++” turn up only one tutorial that only covers…

--

--

Building https://kaizen.place. writing about C, C++, rust, game development, web development, engineering management. https://devtails.xyz/