src code

constructor new Element

new Element(tagName[, attributes])
  • tagName (String) – The name of the HTML element to create.
  • attributes (Object) – A list of attribute/value pairs to set on the element.

Creates an HTML element with tagName as the tag name.