Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:


why does it show error? where did I do the mistake?

Describe your issue in detail here.

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

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

Link to the challenge:

Hi and welcome to our community,
You will have been correct if not for a little error, you were asked to add a target attribute with the value _blank to the anchor (a ) element’s opening tag, so that the link opens in a new tab. The same way you did the href do the same for the target or if you don’t understand follow this rule:

<a attribute="value"></a>

I guess you know what the attributes and values are?, incase you don’t know read the question again and you will understand.
Hope it helps you, goodluck!

1 Like

umm the problem is with the action attribute. the step 36th step. the whole code didn’t show up. but you can look at the screenshot for refference.

Oh, if that is the case, you didn’t need to create a new form element.
You were to add an action attribute to the existing form element not to create a new one.

2 Likes

oou I figured it out. from your refferrence. thanks a lot

1 Like

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