The Paragraph object represents an HTML <p> element.
Copy
let x = document.getElementById("myP");
Open in separate window
View full source code
You can create a <p> element by using the document.createElement() method:
Copy
let x = document.createElement("P");
Open in separate window
View full source code