Source code from http://www.jamesmolloy.co.uk/tutorial_html/index.html with improved build system and some simplifications. Behaviour is very close to the tutorial so ...
Ensure you have a recent C++ std20 compiler such as the latest Visual Studio 2022 (run the Visual Studio updater application if unsure), Clang or GCC ...