How can I insert an image in html for the Codepen project?

I have been searching on Google to find images and inserting them into the code below:
<img class=“smaller-image;“src=”//"alt="Harry Potter”/>

When I insert the src used in the html practice guide it works, but no src that I am finding online is working.

Make sure that you’re using a URL for an image (jpg, png, gif). Your URL here is for a JavaScript file.

If you’re using an image from a Google search, click the button that says “View Image”, then use that URL.


Try in this way :slight_smile:
<img src = "”//"alt="Harry Potter”/ class=“smaller-image”>

1 Like