<html>
<body>
<h1>The Document Object</h1>
<h2>The CreateElement() and createTextNode() Methods</h2>
<p>Create a p element with some text:</p>
<script>
const para = document.createElement("p");
const textNode = document.createTextNode("Hello World");
para.appendChild(textNode);
document.body.appendChild(para);
</script>
</body>
</html>