Learn HTML by Building a Cat Photo App - Step 14

Been trying to add a target to this buh am stuck, have been instructed to add _blank but am confused. Am new here.

See more cat photos in our gallery.

<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/109.0.0.0 Safari/537.36

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

Link to the challenge:

Delete the space you have to the right of the href=

I don’t see where you added the target attribute here?

It is great that you solved the challenge, but instead of posting your 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.

Thats the problem, am confused at where I would add the target

Add it just like the href is added

(It is an attribute that you add to the anchor element. And you give it the value “_blank”

Am still confused bro :smiling_face_with_tear:

How did you add the href attribute?

Have gotten it, thanks alot, I added the target in a wrong way, I added it like this <a href= “_blank” instead of <a target=“_blank” href=

I was a little bit confused at tht point. Thanks alot guys. :man_bowing:

3 Likes