Menu
×
×
Correct!

Exercise:

Use JavaScript to change the image (the src attribute) to a new image called "pic_mountain.jpg"

Hint: Use the document.getElementById() method to find the <img> element.
Then, use the src property to change its address.

Edit This Code:
Result:
Correct Code:
Result:
Go to w3schools.com
Reset Score
Close This Menu

 

HTML Attributes
HTML Headings
HTML Paragraphs
HTML Styles
HTML Formatting
HTML Quotations
HTML Comments
HTML CSS
HTML Links
HTML Images
HTML Tables
HTML Lists
HTML Classes
HTML Id
HTML Iframes
HTML Scripts
HTML Computercode
HTML Forms
HTML Form Elements
HTML Input Types
HTML Form Attributes





×

Reset the Score?

This will reset the score of ALL 91 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 91 HTML exercises.

Share your score on facebook: