Am stuck on step 10, any help please.... I've tried out almost everything but the code is not passing

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 cat photos.</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.">
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 11; SM-A226B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.62 Mobile Safari/537.36

Challenge: Step 10

Link to the challenge:

I should be insted 'to change the "

your href link should have ", not ’

1 Like

try adding an anchor tag below you paragraph.
*** Spoiler Alert***

Click here to view more cat photos.


Hope this helps

Ok, so this is how this works.
You need to make the cat photos part a link within the <p></p> code. You can insert the link code <a></a> inside <p></p> code to make part or all of the text a link.

Here is your code:

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

And here is code that the instructions want you to build:

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

See how I put the <a></a> inside the <p></p>? This is how you make text within <p> elements links that you can click on without adding unneeded text outside of the <p> elements.

Hope this helps!

I’ve done it exactly as you’ve written here but still not passing

this is correct with one mistake … every attribute is written like this :
href=""

and NOT like this
href=''

and there will be a lot of attributes to use in the future and each attribute has a value that is written inside the “”
like type attribute with value checkbox would be written like this:
type="checkbox"

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