Create and append HTML element. In the example an empty paragraph is being created using createElement property. Then the content is added through innerHTML property and finally the new element is appended to the body.
#javascript
varel=document.createElement("p");el.innerHTML="Content of the new element";document.body.appendChild(el);