Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Everything seems correct. The text is present on the preview but it keeps saying my (a) text either has a typo or is deleted and i do not see any of those two things

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more 
         <a href="https://freecatphotoapp.com"> cat photos </a> in our gallery.</p>

<!-- User Editable Region -->

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

Your browser information:

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

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

Link to the challenge:

you didnt add the attribute target="_blank" in your anchor tag.

1 Like

I dont understand the target _blank attribution could you explain it to me?

yes for sure. there is a difference between attributes and elements. an element looks like:


and you have already added into your <a></a> an attribute named href="". If you put an attribute inside an element it looks like this

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

so your only mission in this stage is to add another attribute into your <a></a> element which is target="_blank"

1 Like

I understand the difference. if you would asssist, one more question. Do i add the target=“_blank” inside the same element or create a new element to add the target"="_blank " attribute?

It needs to go in the same element. You would not add a new element just to put the attribute in there

1 Like

I tried putting the attribute target=“_blank” at the beginning inside the element.

I tried leaving target out of the attribute and inserting _blank. I tried putting it at the beginning and towards end of element before closure.

I do not understanding how I’m missing where to put the target _blank and in which form.
I feel so lost HELP

I’m not sure o but I think you can do it like this: <a target=“blank” href=“…”>…

Please show us your updated code. We cant tell whats going on if we cant see. You can use the format button that looks like </> and paste in your new code

This is just a link to the challenge. Please use the format button that looks like </> and paste the code between the lines it gives you

1 Like

really good question and because of your question I like your way of thinking. No in this case you can add the attribute target="_blank in your current element. You dont have to create a new element.

1 Like
 <p>See more 
         <a target="_blank" href="https://freecatphotoapp.com"> cat photos </a> in our gallery.</p>

HELP I’m still missing something

Looks like you have spacing issues. I would reduce the space space before the opening tag, and the space in between the anchor tags

1 Like

you understood now how it works. your code is correct but as Cody already said there is a little spacing issue. if you delete some spacing you will pass this test. I am glad that you understood the element, attribute thing.

1 Like

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