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

      <p>See more <a =”_blank <a 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 (iPhone; CPU iPhone OS 17_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1

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

Link to the challenge:

Adding a target attribute is done the same way you added the href attribute, using the following pattern:

name="value"

where you replace name with the attribute name and value with the value you want to assign to the attribute.

You don’t need to add another opening a tag to do this. You should add the target attribute to the same opening a tag that you already added the href attribute to. Just add the target attribute after the href attribute, putting a space between them.

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