Our anchor (a) element should be nested within the p element

Tell us what’s happening:
Describe your issue in detail here.
Turn the words cat photos located inside p element into a link using the same value for the href attribute as the link below the p element. The p element should show the same text in the browser, but the words cat photos should now be a link. Make sure to remove the a element with the text cat photos on the line below the p element.

I took very long time to solve this challenge but i did not succeed, kindly assist with thanks.

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p href="https://freecatphotoapp.com"> </p> 
    <a href="https://freecatphotoapp.com"> </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/ Safari/537.36

Challenge: Step 12

Link to the challenge:

Hi @ahosman33

This is how you turn section of text inside a paragraph into a link.

 <p>This is text with a <a href="https://freecatphotoapp.com">link text</a></p>

Your solution should be similar. The task requires you to change some text in the paragraph to a link like I did above.

Thank you Nibble,
Is this like this as bellow if not kindly tell me what wrong i am doing ,thanks for your help in advance.

Yes absolutely like this perfect.

1 Like

Thank you very much All.

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