Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
so i am on step 14 and it says i must add a target attribute to the opening tag of the anchor of the anchor (a) element. i dont know what to do

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/114.0.0.0 Safari/537.36 Edg/114.0.1823.51

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

Link to the challenge:

1 Like

Here is where you added a href attribute. A target attribute is added in a similar fashion.

1 Like

Hi, @KAT1 here “target” attribute is used to include “_blank” element if you want the page to open in a new window.

So to achieve this, you have to include this target attribute in the opening tag of the anchor below
<a href="https://freecatphotoapp.com">
like we did with “href” attribute. Just apply the same and I’m sure you’ll crack it.

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

Oh alright, sorry I didn’t know about that since I am new here. I will definitely make note of that. Thank you again.