Please help I have a problem with html images and alt attribute it is a mess

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<img src = https://cdn.freecodecamp.org/curriclum/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.71 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

I see three problems with this:

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

First of all, the value for that src must be surrounded by quotes.

Next, the url is wrong.

Lastly, you need a closing angle bracket.

When I fix those, the code passes for me.


Compare what you have to the example given:

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

Ok thanks for the feedback I have been stuck for hours

When you get stuck, back up a bit, and go over the fundamentals. You will get stuck a lot in coding. For example, I have been stuck for more than a day now on how to integrate a 3rd party service into my companies app - it happens. In fact, this is probably the most important part of coding. Anyone can code when it’s easy, the good ones are the ones that can tackle difficult challenges. Just keep at it and don’t be afraid to back up and look at it differently, challenging assumptions. The computer is correct 99.999999999999999% of the time so the problem is always going to be us - either something we’ve misunderstood or something we’ve assumed.

wow thanks for the encouragement

1 Like

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