Creates an element of the type specified. Note that the instance returned implements the Element interface, so attributes can be specified directly on the returned object. In addition, if there are known attributes with
default values, Attr nodes representing them are automatically created and attached to the element.