Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
Describe your issue in detail here.
I am trying to complete question 12.
Your code so far

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
  <p>cat photos< href="https://freecatphotoapp.com."
  
    <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/104.0.0.0 Safari/537.36

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

Link to the challenge:

What specifically about the instructions or hints is confusing for you?

This is the error I keep receiving even when I only have one element

Your code should only contain one anchor (a ) element. Remove any extra anchor elements.

The tests are confused because this is not valid syntax. Look back at the last step to see an example of a valid anchor element.

<a href="https://freecatphotoapp.com">cat photos</a>

Yes, that is an example of an anchor element. You need to put it in the right place.

your p element, turn the words cat photos into a link to https://freecatphotoapp.com

The statement above is what it asks me to do. Once I do it, it says I need to combine the p element with my anchor. Im having trouble combining them

What is your current code?

<html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
<p>Click here to view more cat photos.</p>
      <a href="https://freecatphotoapp.com">cat photos</a>
<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>

I was trying to send me actual code but it just sent the web page. lemme separate it or something

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

This looks like the starting code.

You need to take the entire anchor element and replace the phrase ‘cat photos’ in the p element.

<html>
  <body>
    <h1>CatPhotoApp</h1>

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

  <p>Click here to view more cat photos.</p>

      <a href="https://freecatphotoapp.com">cat photos</a>

<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>
1 Like

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

do i take out the a?

You need to add back the closing a tag.

Click here to view more <a href="https://freecatphotoapp.com" () cat photos

i put my corrections in parenthesis just to show what I changed, its still not working

Look back at here. The opening and closing anchor tags both need <>