Learn HTML by Building a Cat Photo App - Step 14

It asks for an attribute inside an anchor. However, the particular attribute has not been taught how to use or add. I have tried multiple ways of adding going by other attributes but none work. Don’t have to hand feed but you should actually go over it prior to adding it to the code.

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more <a href="https://freecatphotoapp.com"target_blank >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/114.0.0.0 Safari/537.36

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

Link to the challenge:

Welcome to our community!

If you have to add an attribute and its value to an HTML element, follow the rule:

<element attribute="value"></element>

‘target’ is the attribute,
“_blank” is the value.

Thanks that was not explained very well in the previous instance. Not sure why they would leave that out but it should be added even if it is explained in the instance that we started with at the beginning. At least somewhere we can go back and look it up. Thanks again.

2 Likes

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