Debug a Pet Adoption Page - Debug a Pet Adoption Page

Tell us what’s happening:

The last line runs as error. However, the instructions are the same as the 2nd to last line and that ran through. I’m not sure what I’m supposed to correct for the last instructions. Here is my code so far…

Welcome XYZ Pet Adoption!

Consider adopting a pet today. We have cats, dogs, rabbits and more.

See our cats!

Five cats looking around a field.

Adopt a cat!

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="Five cats looking around a field."img>

<h2>Adopt a cat!</h2>
<a href="cats">Visit cats page</a>
<h2>Adopt a dog!</h2>
<a href="dogs">Visit cats page</a>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0

Challenge Information:

Debug a Pet Adoption Page - Debug a Pet Adoption Page
https://www.freecodecamp.org/learn/full-stack-developer/lab-debug-pet-adoption-page/lab-debug-pet-adoption-page

what does the failing test say?

  1. Your a element with the text Visit dogs page needs to have an href attribute instead of a src attribute.

were is the element with that text?

1 Like

Yea I have the a element with the href:

Adopt a dog!

Visit cats page I'm not sure what I'm doing wrong still.

I do not see the text “Visit dogs page” there

1 Like

I wrote a href=dogs and closed it with as well

OHH, I got it. I somehow have visit cats page typed in there…

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