Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

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

<!-- 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.">
    </main>
  </body>
</html>

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/15.6.1 Safari/605.1.15

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Welcome to the forum @sofiasdcorreia

You removed text from the paragraph element.

The tests are very specific about spacing and text, so only alter the code the instructions asked of you.

The anchor element needs to nest the target words in the paragraph element.

Please reset the step to restore the original code.

Place the opening anchor tag before the word cat in the paragraph element.
Don’t forget to add the href attribute.

Then close the new element by placing the closing anchor tag after the word photos.

Here is an article explaining how to link text and images inside nested elements you may find helpful.

Happy coding

So, in the last challenge you nested the words “See more cat photos in our gallery.”

Now, you are supposed to take and a element and wrap nit around those two words in the sentence. Here’s an example:
Let’s say I have a p element with the text “Go to our website now!” like this

<p>Go to our website now!</p>

Now, I want to turn the words “our website” into a link, so I wrap them in an a element like this:

<p>Go to <a>our website</a>now.</p>

Now I need to tell the computer where to send the user when they click the link so I give my a element an href attribute like this:

<p>Go to <a href="https//ourwebsite.com">our website</a>now.</p>

Do all these things to your code and it should pass. If it doesn’t you can send me your new code and I’ll see how I can help. :slight_smile:

Did it work for you?

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