HTML tag name (e.g. "div", "img", "a").
OptionalclassName: stringOptional class name(s) assigned verbatim.
Optionalattrs: Record<string, string>Optional string-valued attributes set via setAttribute.
The created element, typed as HTMLElement.
Creates an
HTMLElementfortag, optionally assigning aclassNameand a flat map of string attributes viasetAttribute. This is the capability-local element factory the ported renderers use in place of the former core renderer base class.