Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
When i put in the anchor element it tells me to only have one opening anchor. I create a single opening anchor, by removing <a, however at that stage is stops functioning as an anchor and it then says “your anchor element should have an opening tag”. I’m unsure where the anchor is meant to go. i understand the opening <a and closing /a> tags, but i don’t know where they need to be placed in order to work.

Any help is appreciated.

Your code so far

      <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>
       **<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."><a href="https://freecatphotoapp.com"/a>**

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

Link to the challenge:

You do it the same way with an image as you did it with text in step 12


<a href="https://forum.freecodecamp.org">
  <img src="https://global.discourse-cdn.com/freecodecamp/original/3X/4/c/4c06248fcb7353707abcde9f10fc43a5fb6748db.svg" alt="Logo">

The same issue still arises, saying. should only have one opening anchor

We need to see your code.


<a href="https://freecatphotoapp.com"/a>

Is not valid syntax. You are missing the closing > for the starting tag and < for the end tag.

<a href="somevalue">some text or an image</a>
1 Like

I understand. I didn’t realise i needed a closing> for the start and an opening< for the end. Appreciate the help!