create element in javascript
var para = document.createElement("P"); // Create a <p> element
para.innerText = "This is a paragraph"; //
Insert text
document.body.appendChild(para); // Append <p> to <body>