Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
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 -->


<!-- User Editable Region -->

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

<!-- User Editable Region -->

<!-- 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:

Hi there and welcome to our community!

It’s helpful if you can learn to describe the problems you’re facing in your own words, and including any error messages you’re seeing. Not only is this vital skill in coding but it helps us to understand what you’re struggling with and how to help you!

You should be adding a target attribute with the value _blank, to the anchor element.
Your syntax for the attribute is correct but you’ve created a separate element instead of adding the attribute to the anchor element above. You can add multiple attributes to the opening tag of an element, simply by separating them with spaces.

EXAMPLE:

<p class="one" id="two">This is a paragraph element with two attributes</p>

Hello and welcome to FCC Forum, a community of people helping each other!

@igorgetmeabrain has provided an excellent example of how one element can have more than one attribute and value.

The target attribute and its value “_blank” should be entered within the existing anchor at the start of Step 14, in a similar way to the example provided by @igorgetmeabrain. The current attribute and value within the existing anchor code are href=“https://freecatphotoapp.com”>
I suggest adding the new attribute with the new value either before or after the current one.

I hope this helps you.

Happy coding! :slight_smile:

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