You can add images to your website by using the img element, and point to a specific image's URL using the src attribute. An example of this would be: <img sr

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

   **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<img 


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

Also, please don’t put gibberish into the post title.

Thank you.


This looks like a very incomplete image tag. You should look at the example provided

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

Hi @Sanjay1736 !

Welcome to the forum!

Can you explain to us what you are struggling with so we can help you?
Can you explain what part of the image tag is giving you trouble?

We are here to help :grinning:

1 Like

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

I’m new coding , i have started learing html from last two days , i have completed the last few one on the way of learning, but i stucked here.
its was add <img scr arttribute and alt artribute belongs to kitty image but i cant getting solution , could please help.

syntax for adding images is

<img src="path of your image" alt="alternate text for image" title="your title" height="img  height" width="image width">


HI@jwilkins.oboe
I’m facing trouble while adding image.
it giving error of:
// running tests
Your image should have asrc attribute that points to the kitten image

. // tests completed

I have setednthe scr tag to the corrosponding link but not working ,iam new to coding and i have started coding just few days back,please help me to get solution

you should using https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg
inside the src attribute

<img src=""alt="A business cat wearing a necktie.">

  • next time please read the instructions very well

It is great that you solved the challenge, but instead of posting your full 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.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

It is much easier to help if you copy-paste your code instead of taking a picture.

Your url isn’t quite correct. I would copy-paste the url from the instructions.

1 Like

The others have pointed out the issues with your code.

When you are working on these challenges, it is really important to pay very close attention to details.

Always make sure you are using the exact url from the directions or else the test will always fail.

Also it should be src not scr.

Give it try and if you still have issues, then please post your new code and we can help you from there. :grinning:

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

thank you its worked

ohh ok i got the solution thanks for your details explanation it worked , thank you very much.