Learn HTML by Building a Cat Photo App - Step 14

It keep telling me that the img element link could be wrong or forgot to type something, even tho I copied and pasted it

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <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 href='https://freecatphotoapp.com' <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36

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

Link to the challenge:

try to look at your clossing tag

alright. That is a decent first try but you did forget a couple of things.

Here’s the anchor element syntax for reference:
<a href="this is a link">Click Me!</a>

and here is what you wrote:
<a href='https://freecatphotoapp.com' <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

Notice anything missing in the opening tag?
And did you include the closing tag anywhere?

1 Like

Well if you are like me, you may get stuck on removing the old code from the previous lessons to pass this one. Just ignore that part and apply the previous lesson to this lesson. Instead of turning words into a link, you are turning an image into a clickable link. Kind of wish they had homework on this but you can practice within notepad and a few image files on your local environment to get a better visual understanding of what is happening.

There does in fact exist ‘homework’ as you are describing it - after each block of practice projects there is an opportunity for you to create a project of your own.

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