Learn HTML by Building a Cat Photo App - Step 12

I am having trouble with adding the a anchor to the p and adding the “cats photos”. Can you lead me in the right direction. Please and thank you!

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
   <main>
      <p>Click here to view more <a = "https://freecatphotoapp.com"</a></p>
      <a href="https://freecatphotoapp.com">cat photos</a>
  </main>
    <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_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

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

Link to the challenge:

you have two sets of main tags.

Sure!

Let’s say I have this regular anchor text link to fCC as example.fCC:

<a href="example.fCC">link to fCC</a>

The href attribute is used to target the link, right? And whatever comes between the <a></a> tags is what will become a clickable link.

So if you have this example <p> element:

<p>This is a random paragraph!</p>

If you want to turn the word paragraph into a link, you need to surround it with anchor tags, like this:

<p>This is a random <a>paragraph</a>!</p>

It has been anchored! Now just add the href attribute with the destination link:

<p>This is a random <a href="link.example.fCC">paragraph</a>!</p>
1 Like

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