Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
Describe your issue in detail here. …These were the instructions: In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by adding opening and closing anchor (a) tags around these words.

Here’s the attempted trial,

Click here to view more cat photos.

Here’s the response,
Test: Sorry, your code does not pass. Hang in there.

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

Please help in getting the solution

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a href="https://freecatphotoapp.com"> cat photos.</a></p>
      <a href="https://freecatphotoapp.com">link to cat pictures</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; rv:106.0) Gecko/20100101 Firefox/106.0

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

Link to the challenge:

you have to be super precise to pass this test.

First remove the extra space before the word cat.
Then move the period (dot) outside the link so it is on the right of the closing anchor tag.
(it was not part of the requested link text)

That was the solution! Just like that!
Thank you so much.

1 Like