Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
Describe your issue in detail here.
How or where do i enter the (a) element I am a little confused it says to place it nested with the P element .

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more (a) cat photos.</p>
    <a href="https://freecatphotoapp.com">cat photos</a>
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
  **Your browser information:**

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

Challenge: Learn HTML by Building a Cat Photo App - Step 12

Link to the challenge:

Look at how you created a link with the text “cat photos” below the p element. You did this by surrounding the words with a tags. You want to do the same thing to the words “cat photos” in the p element.

I am so bad at this… so it keeps saying I have to have the a element nested with the p… does that mean I am adding the website in the p element or just the words I dont know why this is confusing me so much .

Look at the “cat photos” link you have already made below the p element:

<a href="https://freecatphotoapp.com">cat photos</a>

That is turning the words “cat photos” into a link. You did that by putting an opening <a> tag before the words “cat photos” and an closing </a> tag after the words “cat photos”. Anything in between the opening an closing tags becomes a link on the page.

You can do the same thing to the words “cat photos” at the end of the sentence inside the p element.

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