How would i add an image to this. what code would i use?

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>
  **Your browser information:**

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

Challenge: Add Images to Your Website

Link to the challenge:

Look at the example code:

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

Just replace the src with the one provided in the challenge text.

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

And maybe give it a more fitting alt text (not that the test cares)

1 Like

copy the 2nd example img element(the one with alt="")
then paste it in the editor, next
Copy the URL they want you to insert
then replace whats between the quotes in source with your copied URL code they want insertedsrc="URL-Code"
Hope this helps. :+1:

NOte: Copy and Paste Aren’t Recommended but this will almost rid you of potential typos.(Starting to Code and typos are very frustrating but essential to learning)

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