Generate HTML code in PHP using an object-oriented way.