Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.
Hello very new to coding, Having an issue with Step 15,
been stuck for a little while now. I have told my error is " Your anchor (a ) element should link to https://freecatphotoapp.com . You have either omitted the URL or have a typo."

Thank you and any help is appreciated

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><href='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 (Macintosh; Intel Mac OS X 10_13_6) 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:

This is the probable.
You are treating href like an element. But it is only an attribute.
Combine these two tags into one so that the final tag looks like

<a href=“whatever”>

<a><href='https://freecatphotoapp.com'>

It’s not a correct syntax to use <a> anchor tag.
You are treating href like an element. But it is only an attribute.
Combine these two tags into one so that the final tag looks like

How to use <a> anchor tag?
<a href="add link here ">Add text here </a>

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