Learn HTML by Building a Cat Photo App - Step 15

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

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

<a hrek="https://freecatphotoapp.com" <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"</a> alt="A cute orange cat lying on its back.

<!-- User Editable Region -->

    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 13; SAMSUNG SM-A137F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/20.0 Chrome/106.0.5249.126 Mobile Safari/537.36

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

Link to the challenge:

You have a typo hrek.

Where exactly please?
My Problem is at the level of converting the image to the link

you typed in hrek instead of href

also your first anchor tag isnt closed and your closing anchor tag is in the wrong place

I modified the code as you can observe.
Please at which point exactly should i put my closing anchor tag???

So, this is your code right now from what I can see

<a hrek="https://freecatphotoapp.com" <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"</a> alt="A cute orange cat lying on its back.

The first issue is it should be href and not hrek

The second issue is you have no closing for your opening anchor tag. You need to add a > before your starting img tag.

your alt is outside of the img. It needs to be inside your opening img tag

You also do not have a ending > for your img that needs to go just before your closing anchor tag.

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