Help pls! I'm having trouble with Learn HTML by Building a Cat Photo App - Step 14

Hello! I’m having some difficultly with step 14 so any help or advice on what I’m doing wrong would be much appreciated!

  1. The hint says "your anchor (a ) element should have an opening tag. Opening tags have this syntax: <elementName> " but I’ve included this already.
    Am I putting it in the wrong place? Where should this go? Or is this because I’ve put href=“https://freecatphotoapp.com” in between it?

  2. Where should I put the href=“https://freecatphotoapp.com” if not between the element tag?

Thank you in advance!

<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>
    <elementName 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>

Hey!

There is not tag in HTML with the name <elementName>, its just an example meant to demonstrate to you how tags work.

In this challenge, you need to turn the img into a clickable link, you can do that if you just take the image you have on your webpage and put it under your existing a tag.

Hope this helps! :smile:

Thats not the element for the anchor element.

Hello!

Ahh right, thank you so much for the explanation!

Ahh right, so it should be an <a> tag?

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