Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:

I am totally lost. I have read to treat the target attribute like href. I thought I tried that.
I do not understand why my anchor element still does not have a target attribute. I clearly do not understand. Someone please help!

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>
      <a target="_blank"></a>
      

<!-- 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/122.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 14

Welcome to the forum @tiffanyoakesfamily7

The target attribute is correctly syntaxed.

It needs to go in the existing anchor element, nested in the paragraph element.

Happy coding

1 Like

Thank you. I just figured that out on my own. What a dumb moment. I hope this helps someone else in the future. :woman_facepalming:

3 Likes

Hello and welcome @tiffanyoakesfamily7 !

It is not a dumb moment.

It can happen to us all at times.

These are our learning moments when the mind provides us with an opportunity to seek great help from the forum and great people, like @Teller and others help us.

May your coding path be smooth.

2 Likes

Thank you! This is my first time ever attempting code. I will try to give myself more grace.

2 Likes

I am also stuck on this step. I simply do not understand where the Anchor elements opening tag is and where to place the target (_blank) attribute.

Even looking at the example above im not understanding where to place the target attribute.

Please help.

Hello @SilentKnight !

Welcome to the community!

Could you please use the HELP that appears after three unsuccessful attempts, and choose to create a new post? This way, you will be able to post your complete code, and your question for the community to better assist you.

There are many people out here looking to help each other.

Thank you!

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