Image Tag Challenge

Utilizing image tags can be tricky at first, but as long as you know the basics, you'll be in the clear. The most important thing to remember about the image tag is that it is self-closing, meaning that there is no ending tag:

<img />

Once you have a self-closing img tag in place, it's important to insert the tag's src attribute—this is what will determine what image you want to render out onto the browser:

src=""

I intentionally left the src="" attribute alone, outside of the <img /> tag written above (for the image tag to render an image, they must be used together). Your task is to write out a valid, self-closing image tag that has the src="" attribute inserted into it.

You'll be able to proceed once you've written a valid image tag.

index.html
Cheat Sheet Preview

Download The Official Chris Courses HTML5 Canvas Cheat Sheet

Essential canvas syntax at your fingertips.

Download Now

Providing the lift to launch your development career

© 2021 Chris Courses. All rights reserved.