I don’t know how to do the image thingy-ma-bob… HELP ME!

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>
<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


https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15

Challenge: Add Images to Your Website

Link to the challenge:

Hi @Vaporeon,

Few issues in your code. Let’s look the challenge exercise step by step. First:

Within the existing main element, insert an img element before the existing p elements.

Look where did you put your image, is it within the main tag?

Second:

Now set the src attribute so that it points to the url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

Look the value of your src attribute and compare with what the exercice is expecting you to use.

Third:

Finally, don’t forget to give your img element an alt attribute with applicable text.

It doesn’t seem like you put a alt attribute`.
Your code:

<img src="https://www.freecatphotoapp

Now the last issue is your code. The syntax of your img tag is messy. Look the example gave by the course:

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">

Compare and fix all of this, then you will arrive.

<img src="https://www.freecatphotoapp


https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

This is not a valid img tag.

You need to add one that looks like the example they gave you:

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">

but you need to use the url they told you to use. And presumably give it a meaningful alt.

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