Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
idk whats wrong but i cant do this step right

Your code so far

      <h2><p>Cat Photos <a href="https://freecatphotoapp.com."></a><p></h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more cat photos in our gallery.</p>
      <a 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

:balloon:Hello! Welcome to the forum!

This is a tricky challenge because you have to insert an element inside another element. Firstly, find the text that you need to turn into a link, in this case:

cat photos

which is inside a p element as per your code below.

Let’s create the link in small steps.

  1. The text we want to become a like has been identified as ‘cat photos’;
  2. Now that text needs to be surrounded by an anchor element like so:
    <a>cat photos</a>
  3. Finally, the link must take the user to some url so we need to set the href attribute on the anchor tag like this:
    <a href='https://freecatphotoapp.com'>cat photos</a>

Does this help?
Keep up the good progress!

Happy Coding! :slightly_smiling_face:

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