Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
can somebody tell me what’s wrong with my code? I couldn’t discover

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 target_blank 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/116.0.0.0 Safari/537.36

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

Link to the challenge:

2 posts were merged into an existing topic: Learn HTML by Building a Cat Photo App - Step 14

Step 14 tells you to add a target attribute with the value _blank – instead you put both of them together as target_blank which is invalid.

See more <a cat photos in our gallery.

See more cat photos in our gallery.

<p> See more  <a target="_blank> href="https://freecatphotoapp.com"> cat photos</a> in our gallery.</p>

<p> See more  <a target="_blank> href="https://freecatphotoapp.com"> cat photos</a> in our gallery.</p>

i wrote like this but still wrong

Could you show the HTML code used to get this result?

I’ve edited your code for readability. 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 (').

The value _blank has to also have a " at the end as a closing delimiter so as to be read properly.

its should be target=“_blank” since its an attribute the _blank should be in quotation marks.

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