I don't know how to add an image

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<h2>CatPhotoApp</h2>
<main>


<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
r</main>
<img scr= "https:www.freecatphotoapp.com/your-image.jpgfreeCodeCamp logo">

  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 8.0.0; SM-G935F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.79 Mobile Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

Let’s go through the instructions very carefully:

“Within the existing main element” - This means inside the main element, or nested withing the main element. You added the img outside of the main element.

“insert an img element before the existing p elements.” - Again, you added it after the existing p elements.

"Now set the src attribute so that it points to the url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" - You have a typo in the src attribute (you reversed two of the letters) and you didn’t use the URL given to you in the instructions.

“Finally, don’t forget to give your img element an alt attribute with applicable text.” - You didn’t add an alt attribute to the img.

Also, don’t delete anything that is already there. The only thing you are doing is adding one new img element. I would click the “Reset All Code” button to get a fresh start.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.