Refactored `element.create()` to accept HTML strings as the `type` parameter and utilize `element.frag()`