Learn HTML by Building a Cat Photo App - Step 12

nesting of anchor tag in paragraph tag
I m not getting wat is wrong with my code.

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p> Click here to view more cat photos. <a href="https://freecatphotoapp.com">cat photos</a></p>
      <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: Learn HTML by Building a Cat Photo App - Step 12

Link to the challenge:

hello, if you click on the Restart Step button you will see that you were shown 2 lines of code:

      <p>Click here to view more cat photos.</p>
      <a href="https://freecatphotoapp.com">cat photos</a>

You must not touch the 2nd line at all for this exercise. (I notice in your current code it has gone).
The other thing to focus on is that only the last two words of the paragraph should become a clickable link.

Just the last 2 words in the paragraph.

So when you are done adding your new anchor tag to the top line you will have something that looks like this (in the preview pane):

Click to view more cat photos.

Make sure you write a properly formed anchor tag and place it so only the last 2 words are inside it and you should be able to pass this test.

If you need a reminder of how to write an anchor tag, refer to the 2nd line I quoted above.

Hi i’m on step 9 and am really confused here

sorry to hear that. Please click on the button Ask For Help on your challenge screen.
(if you cannot see it, try to click the Check button a few times first).
The Ask for Help button will open a new topic and hopefully give us a link to the challenge and a look at your code as well. (don’t forget to fill out the “Describe the problem” field though…)

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