<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>JavaScript</title>
  <script>
    function addElement() {
      const element = document.querySelector("section");
      const newelement = document.createElement("p");
      newelement.innerHTML = "This is a new element";
      element.appendChild(newelement);
    }
  </script>
</head>
<body>
  <section>
    <h1>Website</h1>
    <button type="button" onclick="addElement()">Add Element</button>
  </section>
</body>
</html>