Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

how can I turn my text into a link on step 12. by

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><a href="https://freecatphotoapp.com">cat photos</a>

<!-- User Editable Region -->

      <a href="https://freecatphotoapp.com">link to cat pictures</a>
      <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 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

Hi you need to wrap “cat photos” in <a> inside the <p> .

See more cat photos in our gallery.

cat photos

Above is your code preview.

Below is the correct preview:

See more cat photos in our gallery.

[quote=“cordis, post:1, topic:704296”]

<p>See more cat photos in our gallery</P>
      <a href="https://freecatphotoapp.com">cat photos</a>

like this

the <a> need to be in the <p>.

Hello there!

This is correct, but it is in the wrong place. So delete it. If you look at @hasanzaib1389 post, then you can see how the outcome of your code is and how it should be.
So now after deleting your a element that is after your p element do the following:
In your p element, directly before the text cat photos add your a element opening tag with your href and value. And directly after the text cat photos add your a element closing tag.

Also all element names should be uncapitalized. Your p element closing tag is capitalized.

Example: <p>I think <a href="https://www.freecodecamp.org">freeCodeCamp</a> is great.</p>

Hello and Welcome to the forum!

Here is a link to a great article that provides both good instructions and examples that I have found valuable throughout the course.

Best wishes on your coding journey. :slightly_smiling_face: