Added openHtml and closeHtml method to elements