Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
The tutorial has suddenly stopped giving examples of where and how to insert these tags, so I’m not sure where exactly I need the tag and href attribute to be.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
      <a <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back." href="https://freecatphotoapp.com"</a>
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

Challenge: Learn HTML by Building a Cat Photo App - Step 15

Hi!
So in this step you need to have a anchor tag with the href and the link, and the img element should between the anchors open tag and closing tag.
In your case you should move the href you have next to the “alt” and put it in it’s right place.
Hope this helped!

Hi!

I have the href link right after the alt, and they are all inside the “a” tags. Do I need to put it before the alt text?

The img tag is inside the a tag and you have your src,alt and href inside the img tag.
Your href should be inside your a tag before the img tag.

Oh I see, so that was the problem. Thank you.

No, problem good job! :grinning:

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