Learn HTML by Building a Cat Photo App - Step 13

I am battling with step 13!!!

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <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>
    <p>Click here to view more <a target="blank" 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"<p/> </a>
  </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/103.0.0.0 Safari/537.36

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

Link to the challenge:

1 Like

Hi,
You needed to add a target of blank to the existing anchor element, not write a new anchor element with a target of blank. You also missed the _ before blank.

Delete the first anchor element and your code should pass.

Can you please write the whole thing down

Hi,
If you mean write the full solution down, I won’t because that does not help learning. Having a solution doesn’t mean understanding why it works.

If you’ve tried what I’ve suggested and it hasn’t worked, please share your code with me regardless.

Learning to code means making mistakes, sometimes lots of them! But this leads to understanding if you keep working at it. :slight_smile:

2 Likes

add the target attribute after your link but within the a element make sure you use underscore(_) not equal to (=).
Happy Learning!!

<p>Click here to view more<target=_blank>cat photos></a></P>

I’ve edited your post to format the code.

To format your code, surround it by back ticks, or highlight the pasted code and press the button that looks like this </>. The gif below gives a visual demonstration of both of these.

You’ve removed the ‘a’ in the anchor tag. That still needs to be present for the link to work.

Also, attribute values like _blank should be surrounded by quote marks.