javascript createelement div id

 

 

 

 

To create a new tag we use the createElement() method of document.For instance, to access the DIV with the ID "myDiv", we would useWell, like all of JavaScript, these properties use 0 to represent their first child node, 1 to represent the second, and so on.Add child elements of Div