Kizspy | Question: 22
(Choose 1 answer)
<body>
<h1 id="id01">My First Page</h1>
<p id="id02"></p>
<script>document.getElementById("id02").innerHTML = document.getElementById("id01").innerHTML;
</script>
</body>
</html>
What is a right statement?
A. Syntax error
B. retrieves the text of an <h1> element and copies it into a <p> element
C. retrieves the text of an <p> element and copies it into a <h1> element
D. None of the others