<html>
<body id="parent">
<h3>Science Reads</h3>
<p>Pale Blue Dot - Carl Sagan</p>
<script>
var book1 = document.getElementById("parent").createElement("p");
var book2 = document.getElementById("parent").createElement("p");
</script>
</body>
</html>]]>- It accesses the parent element
- It creates the parent element
- It creates an element with the ID
parent
It accesses the parent element.