JSREF

HTML DOM Document createElement()

Create a <p> element and append it to the document: