<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<p>See more cat photos in our gallery.</p>
<p>cat photos<a href="https://freecatphotoapp.com">link to cat pictures</a></p>
<!-- User Editable Region -->
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
i think i put cat photos text in right place with p tag…
but not validate, give idea to solve this one
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<p>See more cat photos in our gallery.</p>
<p>cat photos<a href="https://freecatphotoapp.com">link to cat pictures</a></p>
<!-- User Editable Region -->
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
so because you have two separate p tags it creates two separate sentences
But they’re asking you to turn “cat photos” into a link.
You have to nest the “a” tag in the “p” tag around the phrase you want to turn into a link rather than making a whole new “p” tag
Here is the example for Building a Cat Photo App Step 12.
<p>I think <a href="https://www.freecodecamp.org">freeCodeCamp</a> is great.</p>
Before the anchor was added to the above example, the p element statement would have read <p>I think freeCodeCamp is great.</p>
Notice how the anchor, the attribute href and value “https://www.freecodecamp.org” are placed touching the item that should be made into a link.
This is how See more cat photos in our gallery.should have the two words cat photos turned into a link.
If this helps you understand, please provide the courtesy of checking off resolved by @darriict, as I am only attempting to add a bit more clarification the guidance provided by @darriict?