Learn HTML by Building a Cat Photo App - Step 14

<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">
      cat photos</a></p> 
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"alt="A cute orange cat lying on its back."></a>

Total I see 3 anchor element but it should be 4
now ,
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"alt="A cute orange cat lying on its back."></a>

here i have only 1 anchor element that is also closing tag but where I have to put opening tag anchor Because if I do this

<a href="https://freecatphotoapp"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"alt="A cute orange cat lying on its back."></a>

then it shows this
Your anchor (a) element should link to https://freecatphotoapp.com. You have either omitted the URL or have a typo.

Please. Format. Your. Code.

No. You see one opening tag and two closing tags. Almost every element has three parts, 1) the opening tag, 2) the contents, and 3) the closing tag. (self closing elements only have one part, the opening tag, but an anchor element is not self closing [an img element is self closing])

No. A closing tag alone is not an anchor element.

This is indeed the wrong url. You forgot the domain at the end.

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