// Create element: const para = document.createElement("p"); para.innerText = "This is a paragraph."; // Append to body: document.body.appendChild(para);