Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
Describe your issue in detail here.
cant figure out where im supposed to put the <a and to make only “cat picture” show w the link and not the rest of the sentence
Your code so far

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

<!-- User Editable Region -->

      <p>See more <a href= "cat photos" </a> 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.">
    </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/110.0.0.0 Safari/537.36 OPR/96.0.0.0

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

Link to the challenge:

You turned the words link to cat pictures into a link in a previous step by wrapping them in opening and closing a tags. I’ll paste it here again just to make it clear:

<a href="https://freecatphotoapp.com">link to cat pictures</a>

That’s exactly how you would turn the words cat photos into a link as well, by wrapping them in opening and closing a tags just like you did for `link to cat pictures.

sorry, slight typo, I wasn’t asking about the “link to cat pictures” step. I wanted to know how was i supposed to make the words “cat photos” appear with the link without the rest of the sentence also having the link.

Yes, I understood exactly what you were asking. I was using the link to cat pictures link you created earlier as an example of how to make the words cat photos a link. You put an opening a tag before those words and an closing a tag after those words. So if you wanted to turn the words cat photos into a link then you would do the same thing to those words. It does not matter that the words cat photos are in the middle of a sentence. You can add a tags into the middle of a sentence as well.

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