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

<p>Click the button to create a CITE element with some text.</p>

<button onclick="myFunction()">Try it</button><br><br>

<img src="img_the_scream.jpg" width="220" height="277" alt="The Scream">

<script>
function myFunction() {
    var x = document.createElement("CITE");
    var t = document.createTextNode("The Scream.");
    x.appendChild(t);
    document.body.appendChild(x);
}
</script>

</body>
</html>


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