Learn HTML by Building a Cat Photo App - Step 15

what is wrong with my code i tried for days

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
      <a herf="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
    </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/108.0.0.0 Safari/537.36

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

Link to the challenge:

There is a typo
Use href not herf

1 Like

does it matter if target ="_blank " comes before or after the url?

there is no need to organize the attributes in any order but for good coding style it is normal to put the href first because we like to organize the attributes in alphabetical order.

1 Like

no way I missed that
thanks youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
:heart:

1 Like

I was about to quit coding
You are my hero

2 Likes

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