Let's try to add an image to our website: Within the existing main element, insert an img element before the existing p elements. Now set the src attribute so

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<img src="https://www.freecatphotoapp.com/your-image.jpg">
alt="a business cat wearing a neck tie"
https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg
<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

Challenge: Add Images to Your Website

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

Hi
So the program ask you to insert an image with this following link https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"
Don’t forget for the alt attribute the program ask for it too!
And the code for the img attribute should be like this: <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="relaxed cat">

It is great that you solved the challenge, but instead of posting your working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

oh sorry Jeremy I’m very new to web development and I wanted to help, I understand what you’re saying and I will try to do better next time!

1 Like

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