createElement is a Web API that creates creates the specified HTML element in HTML,In a XUL document creates the specified XUL element,In other documents it creates an element with a null namespaceURI.
Description
- In an HTML document creates the specified HTML element
- In a XUL document creates the specified XUL element.
- In other documents creates an element with a null namespaceURI.
Syntax
var element = document.createElement(tagName);
where,
- elementis the created element object.
- tagNameis a string that specifies the type of element to be created. The- nodeNameof the created element is initialized with the value of- tagName.
 
     
     
     
     
     
     
     
     
     
     
    