first version of verifyHtmlElement