Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

Describe your issue in detail here.

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

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!

Tell us what’s happening:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

So right now your code basically says:

See more cat photos in our gallery.

cat photoslink to cat pictures

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

so what they’re looking for is

See more cat photos in our gallery.

So you want to make the p tag , write your sentence and then put the a tag (With the link) around the phrase you want to turn into a link

hope this makes sense

Welcome to the community @eswara !

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?

Happy coding!

1 Like

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