Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Idk why its not working.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos</a>.</p>
      <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/107.0.0.0 Safari/537.36

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

Link to the challenge:

Hi there, can you try to add the target attribute?

Why do you think that it should work?

i am trying but its not correct in the end. Thanks for your reply.

All HTML attributes are added the exact same way.

Look at how you added the href attribute.
Do the same thing but with the target attribute.

Because 30 minutes i am trying to solve it. :sweat_smile:

But you haven’t added any code. I can just see the same code which was given to you .

I add many times and tried and then i deleted because was not working

Try to follow the instructions given above by Hanaa. Let us know if you still have questions.

okay that’s fine.
Can you try to put your mouse next to the word href
on the left of it
then type the word target
then type an equal sign
then type “_blank”
then leave a space

Thank you so much <3 its done :heart_eyes: :smiling_face_with_three_hearts:

1 Like

Thank you :slight_smile: i solve it.

1 Like

great. Just want you now to pay attention to what you learned from this lesson.
An html attribute is always added to the opening tag.
You will be asked to add many attributes in future step, so be sure to remember how to do this for next time.

1 Like