Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Describe your issue in detail here.
what’s this target thing all of a sudden where do i even place this?
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:

How did you add the href attribute with this value?

im sorry i dont understand

You wrote the part I quoted. That code is a href attribute. You write any attribute the same way you wrote the href attribute.

Add a target attribute with the value _blank to the anchor (a ) element’s opening tag, so that the link opens in a new tab.
this is my challenge i just dont know where to add the target attribute in the code because untill this challenge they used to show a code and explain where we should add it and it didnt happen so for this one so im just confused where to place it

Can you identify where the anchor element’s opening tag is?

i think its after this? “<a”

Yeah, so it’s this whole thing.

You need to add a new attribute the same way that you added that href attribute.

You wrote href="url" before, but now you need to add a target attribute set to a value that is not a URL.

1 Like

ah i get it now thanks for being patient

1 Like

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