← Back to Question List
JavaScript Quiz #35
Create Image Element
You need to create a new <img> element, set its src to "photo.jpg", set its alt text to "My Photo", and append it to a div with id="imageContainer". Which option accomplishes this?
You need to create a new <img> element, set its src to "photo.jpg", set its alt text to "My Photo", and append it to a div with id="imageContainer". Which option accomplishes this?