Get the Newsletter

createElement

A Method

createElement(tagName: string): HTMLElement

Creates the specified HTML element or an HTMLUnknownElement if the given element name isn't a known one.

Parameters

tagName: string
A string that specifies the type of element to be created.

Returns

The created element.