-print("<br><br>The browser brand is reported as "<b>".$ua->getBrand()."</b>"\n");
-print("<br>The browser version is reported as "<b>".$ua->getVersion()."</b>"\n");
-print("<br>The browser engine is reported as "<b>".$ua->getEngine()."</b>"\n");
-print("<br>The engine version is reported as "<b>".$ua->getEngineVersion()."</b>"\n");
-print("<br>The operating system is reported as "<b>".$ua->getOS()."</b>"\n");
-print("<br>The system platform is reported as "<b>".$ua->getPlatform()."</b>"\n");
-print("<br>The browser language is reported as "<b>".$ua->getLanguage()."</b>"\n");
+$ulist = $body->appendElement('ul');
+$ulist->setAttribute('class', 'flat');
+$litem = $ulist->appendElement('li');
+$litem->appendText('The browser brand is reported as "');
+$litem->appendElement('b', $ua->getBrand());
+$litem->appendText('"');
+$litem = $ulist->appendElement('li');
+$litem->appendText('The browser version is reported as "');
+$litem->appendElement('b', $ua->getVersion());
+$litem->appendText('"');
+$litem = $ulist->appendElement('li');
+$litem->appendText('The browser engine is reported as "');
+$litem->appendElement('b', $ua->getEngine());
+$litem->appendText('"');
+$litem = $ulist->appendElement('li');
+$litem->appendText('The engine version is reported as "');
+$litem->appendElement('b', $ua->getEngineVersion());
+$litem->appendText('"');
+$litem = $ulist->appendElement('li');
+$litem->appendText('The operating system is reported as "');
+$litem->appendElement('b', $ua->getOS());
+$litem->appendText('"');
+$litem = $ulist->appendElement('li');
+$litem->appendText('The system platform is reported as "');
+$litem->appendElement('b', $ua->getPlatform());
+$litem->appendText('"');
+$litem = $ulist->appendElement('li');
+$litem->appendText('The browser language is reported as "');
+$litem->appendElement('b', $ua->getLanguage());
+$litem->appendText('"');