Edit This Code:
<!DOCTYPE html>
<html>
<body>

<h1>My Web Page</h1>

<p id="myP">This is a p element.</p>

<div id="myDIV">This is a div element.</div>

<script>
document.getElementById("myP").innerHTML = "Hello Dolly.";
document.getElementById("myDIV").innerHTML = "How are you?";
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy