Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
First time trying to code, been stuck for roughly an hour. Wouldnt the anchor tag need to encapsulate the entire img?

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
   <a href="https://freecatphotoapp.com" target=_blank <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 Edg/104.0.1293.63

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

Link to the challenge:

Hey! Even though its supposed to encapsulate the whole thing, it looks like you forgot to add > at the end of the opening a tag. The value for the target attribute needs to be in quotes.

Hope this helps! :smile:

1 Like

So the <a should have one immediately after the a while the _blank should have quotations correct? Also, would this all be on the same line or the lines before and after?

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Oh okay cool! Thanks for the advice!

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