Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
where exactly do i add the target attribute with the value _blank

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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.">
    </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/113.0.0.0 Safari/537.36

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

Link to the challenge:

Hello, and welcome to our community

You are supposed to add the target inside anchor tag (<a …>) after href.

hey so i tried it still doesnt allow, thanks, im not sure if im doing it right… it should be
< a href_blank=“https://freecatphotoapp.com”>cat photos < /a >
right?

Welcome to our forum.

You could add the attribute target with the value _blank immediately behind the a and before the href is you like.

It should work.

If it still does not work, please post any updated code?

As well, check for any extensions, or try submitting from a different browser. Sometimes, these can be the issues.

Happy coding!

This did not work due to it being added to the href. If you leave a space between the href and the new value it should work. :slight_smile:

Hey, so i tried placing a space between the href and the “_blank” it still doesn’t seem to work
< a href _blank=“https://freecatphotoapp.com”>cat photos< /a>
this is how my code looks right now (well apart from the space between ‘<’ and a and ‘/’
i did that so that you can see it…

It requires having the target= prior to the “_blank”
Sorry for not realizing that was missing sooner.
target= “_blank”
anywhere within the a element should work.

1 Like

Thanks it worked, really appreciate your help

1 Like

Sorry for not catching it sooner.

Happy coding! :slight_smile:

1 Like

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