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

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt cat relaxing
<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/96.0.4664.110 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

You should use the SOLUTION REDACTED BY MODERATOR

You haven’t assigned the property to the alt attribute properly.
Take another look at the sample code in the lesson.

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 

Please confirm if the code is correct im not getting it in the result section

Once again, you are missing the alt attribute.

I’ve edited your post for readability. 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 (’).

HI @Ahmed_Elbeek !

Welcome to the forum!

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.

You can post solutions that invite discussion (like asking how the solution works, or asking about certain parts of the solution). But please don’t just post your solution for the sake of sharing it.
If you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.

1 Like

alt attribute should not be empty. // tests completed

Error for this code:

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"

Do you have a question.

As has been stated numerous times you do not have an alt attribute. That’s what the failing test is saying too.

If you follow the example and add an alt attribute the test will pass.
If needed use the ‘Reset All Code’ button to start the lesson from the beginning.

If you have a question please ask it rather than posting the same one line of code.

There is a lot of confusion over the alt attribute.

Please look very carefully at the structure for an img tag.

<img src="url goes here" alt="descriptive text goes here">

Now take a look at your code.

You see how I have this part

alt="descriptive text goes here"

You see how that is missing from your code.

That is what the error message is telling you.
You don’t have an alt attribute.

I am also going to link the documentation so you can take a close look at it and understand the img tag better.

Hope that helps!

I wrote mine just like the example you male but, still telling me something is wrong: