Debug a Pet Adoption Page - Debug a Pet Adoption Page

Tell us what’s happening:

Hi, I need assistance with this debug. This is how I’ve fixed it, but still not getting the correct syntax. Thank you.

Welcome XYZ Pet Adoption!

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

See our cats!

Two tabby kittens sleeping together on a couch

Adopt a cat!

<a href="/cats"="Visit cats page"

Adopt a dog!

<a href="/dogs" alt="Visit dogs page"

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>
<a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" >Two tabby kittens sleeping together on a couch</a>


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

<h2>Adopt a dog!</h2>
<a href="/dogs" alt="Visit dogs 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

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

this is not correct syntax. The text of an element goes between the tags, you made too many changes

1 Like

I`ve tried multiple times, may I know the correct syntax, please?

reset the lab, you are only asked to change the attribute of the element. Do you know what an attribute is?

compare the h2 and a, all elements have the same general syntax, do you see the differences here?

1 Like

Yes, I know. An attribute is a value placed inside the opening tag

Yes, I can see the difference