Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

Describe your issue in detail here.

I’m not able to figure out the href

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more <a> cat photos </a> in our gallery.</p>
      <a> <p href="https://freecatphotoapp.com"> link to cat pictures </a>

<!-- User Editable Region -->

      <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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

I suggest resetting the lesson and starting over as it may be easier. href is an attribute that gets placed within <a> elements. You currently placed the href attribute within your <p> element. So wrap the correct words in an opening and closing <a> element and you should be good provided you apply the href attribute with the correct link.

1 Like
The "a" tags are used when referencing. But you had simply used "a" tags within "p" tags without any attribute. Try adding a 'href' attribute to the "a" tag inside "p" tag .

<p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

In the next line, you have 'href' attribute with <p> tag, which is wrong. 'href' attribute comes with "a" tag

<a href="https://freecatphotoapp.com"> link to cat pictures </a>
1 Like

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