Turn th 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

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more<a href> cat photos</p>
    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.">
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36

Challenge: Step 12

Link to the challenge:

You have not assigned a url to href attribute

i did now but its not still working

If you have added the href to the code above then you’re closer. That being said there are still a few errors that you need to take care of to pass. Take a look at the instructions read them carefully. Think about what specifically they are askimg you to do and WHERE specifically they want it done

you might have removed part of text from paragraph tag, you should post your updated code

here is my updated code

Click here to view more cat photos

cat photos

you should click </> button before copying your code

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

Thanks

cat photos is displayed twice, it should be once, and you have extra spaces in cat photos link

1 Like

I have done it like this earlier, it did not work

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

The hint i got

Hint

The link’s text should be cat photos. You have either omitted the text or have a typo

Double check your spacing in and around the words “cat photos”. Things like spaces,case of letters, punctuation, and spelling really matter when the tests are looking for a very specific thing. As you progress to building things on your own they will matter as well. Any text inbetween the opening tag and closing tag is displayed exactly as it is typed.

Thanks , I got it right now

i need a space between " more and my anchor tag"

Can you please help me with why my code is still wrong. Hint says I should have only one (a) anchor element

Click here to view more cat photos

you should post your code by clicking ask for help from instructions when your code fails

u need take out the " . " ( dot)
Ex: cat photos.
cat photos

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