×
×
Correct!

Use JavaScript to change the image source from "scream.png" to "smiley.gif".

<body>

<img id="demo" src="scream.png">

<script>
document.getElementById("demo").src = "smiley.gif";
</script>

</body>

Not Correct

Click here to try again.

Correct!

<body>

<img id="demo" src="scream.png">

<script>
.getElementById("demo"). = "smiley.gif";
</script>

</body>




×

Reset the Score?

This will reset the score of ALL 106 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 106 HTML exercises.

Share your score:



Get Certified!

Take our HTML Developer Certificate to prove that you have fundamental knowledge of web development using HTML.