HTML adding image help

I’m trying to get the “scr” attribute to work. every time I run the test it says that I’m missing the “scr”

  ** My 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>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>
<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36 Edg/93.0.961.52

Challenge: Add Images to Your Website

Link to the challenge:

Two things:

  • You didn’t add the <img> in the right place. The instructions say " insert an img element before the existing p elements."

  • You don’t have the correct URL for the image. I would copy/paste the URL provided in the instructions. That is the easiest way to make sure it is correct.

main
img: “copy and paste” just like you for other exaggerated URL’s(no risk for typos)
p
/p

You need to insert the img tag inside the main tag. You have inserted it after it closes.

try this code:

<h2>CatPhotoApp</h2>
<main>
  <span><img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie."></span>
  <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>
  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

Hope this helps! :smiley:

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