Learn HTML by Building a Cat Photo App - Step 12

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

Your code so farI would like to know what I’m doing wrong

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

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

Link to the challenge:

The URL you want to link to should be the value for the href attribute. You put the sentence text in there instead. Look at the “link to cat photos” link you created below the p element for an example. The link text goes in between the opening and closing a tags. So if you want to make the words “cat photos” a link in the p element then what words should you wrap in a tags?

1 Like

Hello,
you have to sandwich the line


<a href="https://freecatphotoapp.com" </a>
with the line

cat photos

whitout the final point, somehow.
So you have to think, if you put the code inside (a href) somehow, and then write (/a), or if you first write the tag (a href), put the code in the middle and finalize with (/a)

I’ve edited your code 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 (').