Creates new dom element and returns it. Takes three arguments. First two arguments are required: tag name and element parameters as object. If tag name is not string or empty it will created as text ...