Urn the words cat photos located inside p element into a link using the same value for the href attribute as the link below the p element. The p element should

Tell us what’s happening:
Describe your issue in detail here.

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

Challenge: Step 12

Link to the challenge:

Hi!

<p>Click here to view more cat photos.
      <a href="https://freecatphotoapp.com">
      <br>
      cat photos
    </p>

Anchor elements need a closing tag </a>. Do not remove the anchor element.

You need to turn the words cat photos into the link. To do this, have the opening closing anchor element before the phrase ‘cat photos’ and the closing element after the phrase ‘cat photos’.

I’m not sure where the <br> came from but the lesson never asks you to add one.

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

this is the error

Hi,

I need to see your code to know what is wrong. I can’t do anything without your code. When you copy and past the code, format it highlighting it and pressing this button </>.

Also unmark the topic as unsolved if you have not fond a solvation.

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