CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Create Image Element

JavaScript quiz · Question 35
mediumHTML DOM

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?