Hi, thank you for your comment.
This is a simple example to illustrate the builder pattern. I'm not sure if anyone in the world uses builders to create HTML documents. I'm more fan of the Fluent Builder Pattern. I'll try to write an article about it with real-world code.