Tell us what’s happening:
I am working on the FreeCodeCamp Pet Adoption Page challenge. My image issues are fixed, but I still keep failing test #4. The test says: “Your a element with the text Visit cats page needs to have an href attribute instead of a src attribute.”
I have already replaced src
with href
and the dog link passes correctly, but the cat link test still fails. I double-checked for typos and hidden src
attributes, but the error continues. Could someone please help me figure out why the cat link is still failing even though the code looks correct?
Your code so far
<h1>Welcome XYZ Pet Adoption!</h1>
<p>Consider adopting a pet today. We have cats, dogs, rabbits and more.</p>
<h2>See our cats!</h2>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Two tabby kittens sleeping together on a couch.img>
<h2>Adopt a cat!</h2>
<a href="/cats">Visit cats page</a>
<h2>Adopt a dog!</h2>
<a href="/dogs">Visit dogs page</a>
Your browser information:
User Agent ist: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Challenge Information:
Debug a Pet Adoption Page - Debug a Pet Adoption Page