#include #include #include "element.h" using namespace std; void html(); void head(); void body(); void h1(); void p(); int main() { html(); return EXIT_SUCCESS; } void html() { element html_element {"HTML"}; head(); //Put the HEAD and BODY elements inside the HTML element. body(); } //This } calls the destructor for html_element. void head() { element head_element {"HEAD"}; element title_element {"TITLE"}; //Put TITLE element inside HEAD element cout << "This is the title.\n"; } //This } calls the destructors for title_element and head_element. void body() { element body_element {"BODY"}; h1(); //Put the H1 and P elements inside the BODY element. p(); } void h1() { element h1_element {"H1"}; cout << "This is heading 1.\n"; } void p() { element p_element {"P"}; cout << "This is a paragraph.\n"; }